mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
chore: format
This commit is contained in:
@@ -7,28 +7,28 @@ const alias = {};
|
||||
|
||||
const { NODE_ENV } = process.env;
|
||||
if (NODE_ENV === "production") {
|
||||
// @ts-expect-error
|
||||
alias["react-dom/server"] = "react-dom/server.node";
|
||||
// @ts-expect-error
|
||||
alias["react-dom/server"] = "react-dom/server.node";
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), reactRouter(), tsconfigPaths()],
|
||||
resolve: {
|
||||
alias,
|
||||
},
|
||||
build: {
|
||||
outDir: "dist",
|
||||
// sourcemap: true,
|
||||
},
|
||||
server: {
|
||||
host: true,
|
||||
port: 4097,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:4096",
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
allowedHosts: true,
|
||||
},
|
||||
plugins: [tailwindcss(), reactRouter(), tsconfigPaths()],
|
||||
resolve: {
|
||||
alias,
|
||||
},
|
||||
build: {
|
||||
outDir: "dist",
|
||||
// sourcemap: true,
|
||||
},
|
||||
server: {
|
||||
host: true,
|
||||
port: 4097,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:4096",
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
allowedHosts: true,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user