fix:统一为3000端口
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -23,3 +23,6 @@ pnpm-debug.log*
|
|||||||
|
|
||||||
# jetbrains setting folder
|
# jetbrains setting folder
|
||||||
.idea/
|
.idea/
|
||||||
|
.pnpm-store
|
||||||
|
pnpm-lock.yaml
|
||||||
|
package-lock.json
|
||||||
@@ -6,11 +6,18 @@ import node from '@astrojs/node';
|
|||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'server',
|
output: 'server',
|
||||||
|
server: {
|
||||||
|
host: '0.0.0.0',
|
||||||
|
port: 3000
|
||||||
|
},
|
||||||
adapter: node({
|
adapter: node({
|
||||||
mode: 'standalone'
|
mode: 'standalone'
|
||||||
}),
|
}),
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
|
server: {
|
||||||
|
allowedHosts: true
|
||||||
|
},
|
||||||
define: {
|
define: {
|
||||||
'import.meta.env.PUBLIC_TENANT_SLUG': JSON.stringify(process.env.PUBLIC_TENANT_SLUG),
|
'import.meta.env.PUBLIC_TENANT_SLUG': JSON.stringify(process.env.PUBLIC_TENANT_SLUG),
|
||||||
'import.meta.env.PUBLIC_TENANT_API_KEY': JSON.stringify(process.env.PUBLIC_TENANT_API_KEY),
|
'import.meta.env.PUBLIC_TENANT_API_KEY': JSON.stringify(process.env.PUBLIC_TENANT_API_KEY),
|
||||||
|
|||||||
Reference in New Issue
Block a user