ec810a8c45
- Change default locale from zh to en for international audience - Update .env.example with production CREEM API URL - Set SUCCESS_URL to meeyao.com/en/store
47 lines
992 B
JavaScript
47 lines
992 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
import node from '@astrojs/node';
|
|
import react from '@astrojs/react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
output: 'server',
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}),
|
|
integrations: [react()],
|
|
i18n: {
|
|
locales: ['en', 'zh', 'zh_Hant'],
|
|
defaultLocale: 'en',
|
|
routing: {
|
|
prefixDefaultLocale: true,
|
|
},
|
|
},
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
server: {
|
|
port: 4322,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:5775',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
timeout: 30000,
|
|
proxyTimeout: 60000,
|
|
},
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
include: ['react', 'react-dom', 'react/jsx-dev-runtime'],
|
|
esbuildOptions: {
|
|
define: {
|
|
'process.env.NODE_ENV': '"development"',
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
dedupe: ['react', 'react-dom'],
|
|
},
|
|
},
|
|
});
|