short-url/next.config.js

17 lines
429 B
JavaScript
Raw Normal View History

2024-11-29 20:46:12 +08:00
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
// 启用运行时配置
serverRuntimeConfig: {
// 将在服务器端可用
NEXT_PUBLIC_BASE_URL: process.env.NEXT_PUBLIC_BASE_URL,
},
publicRuntimeConfig: {
// 将在客户端和服务器端可用
NEXT_PUBLIC_BASE_URL: process.env.NEXT_PUBLIC_BASE_URL,
},
}
module.exports = nextConfig