✨ Make new frontend available under /modern

👷 Start adding deploy config and CI
This commit is contained in:
nikolark committed 2021-12-05 00:45:36 +01:00
1 parent bc4414473c
commit dbda43077e
8 files changed
+49 -5

No files matched your search

+3 -1
View File
@@ -4,9 +4,11 @@ import reactSvgPlugin from "vite-plugin-react-svg";
// https://vitejs.dev/config/
export default defineConfig({
base: process.env.NODE_ENV !== "production" ? "/" : "/static/modern/",
plugins: [reactSvgPlugin({ defaultExport: "component" })],
define: {
__DEV__: process.env.NODE_ENV !== "prodution",
__DEV__: process.env.NODE_ENV !== "production",
},
envDir: "..",
build: { outDir: "../static/modern" },
});