mirror of
https://github.com/wireadmin/wireadmin
synced 2025-06-26 18:28:06 +00:00
adding WG_HOST as next public env
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
module.exports = {
|
||||
function publicENV(ex = {}) {
|
||||
Object.entries(process.env)
|
||||
.filter(([ key ]) => key.startsWith('NEXT_PUBLIC_'))
|
||||
.forEach(([ key, value ]) => ex[key] = value)
|
||||
return ex
|
||||
}
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
transpilePackages: ["ui"],
|
||||
};
|
||||
transpilePackages: [],
|
||||
env: publicENV()
|
||||
}
|
||||
|
||||
module.exports = nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user