because I got bored of customising my CV for every job
1import path from "node:path";
2import tailwindcss from "@tailwindcss/vite";
3import react from "@vitejs/plugin-react";
4import { defineConfig } from "vite";
5
6export default defineConfig({
7 plugins: [react(), tailwindcss()],
8 server: {
9 port: 5173,
10 host: true,
11 historyApiFallback: true,
12 proxy: {
13 "/api": {
14 target: process.env.VITE_PROXY_TARGET || "http://localhost:3000",
15 changeOrigin: true,
16 },
17 "/graphql": {
18 target: process.env.VITE_PROXY_TARGET || "http://localhost:3000",
19 changeOrigin: true,
20 },
21 },
22 },
23 preview: {
24 port: 5173,
25 host: true,
26 historyApiFallback: true,
27 },
28 assetsInclude: ["**/*.graphql"],
29 resolve: {
30 alias: {
31 "@": path.resolve(__dirname, "./src"),
32 "@cv/routing": path.resolve(__dirname, "../../packages/routing/src"),
33 },
34 },
35});