mirror of
https://github.com/wireadmin/wireadmin
synced 2025-04-25 16:39:58 +00:00
18 lines
397 B
JavaScript
18 lines
397 B
JavaScript
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: [],
|
|
env: publicENV({
|
|
NEXT_PUBLIC_WG_HOST: process.env.WG_HOST
|
|
})
|
|
}
|
|
|
|
module.exports = nextConfig;
|