build: update base URL and router configuration for custom domain

Update Vite config and router basename to use root path for production
Add CNAME file for custom domain deployment
This commit is contained in:
2025-09-15 22:57:30 +08:00
parent 140380b1ab
commit 995ebfeb34
3 changed files with 27 additions and 23 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import tailwindcss from "@tailwindcss/vite"
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
base: process.env.NODE_ENV === 'production' ? '/react-template/' : '/',
base: "/",
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),