Files
ThothII/frontend/vite.administration-pages-prototype.config.ts

21 lines
524 B
TypeScript

import path from "path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig(({ command }) => {
if (command !== "serve") {
throw new Error("The administration-pages prototype is dev-only. Run npm run prototype:administration-pages.");
}
return {
root: path.resolve(__dirname, "prototypes/administration-pages"),
plugins: [react()],
appType: "spa",
server: {
host: "127.0.0.1",
port: 5174,
strictPort: true,
},
};
});