chore: prepare project for server deployment
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
images: {
|
||||
domains: ['localhost'],
|
||||
},
|
||||
// 配置后端API地址
|
||||
env: {
|
||||
API_URL: process.env.API_URL || 'http://localhost:24731',
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
Reference in New Issue
Block a user