forked from AlemTuzlak/remix-ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
32 lines (31 loc) · 926 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { vitePlugin as remix } from "@remix-run/dev";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import { remixDevTools } from "remix-development-tools/vite";
import { routes } from "./remix/config";
import { vercelPreset } from "@vercel/remix/vite";
import { iconsSpritesheet } from "vite-plugin-icons-spritesheet";
export default defineConfig({
plugins: [
remixDevTools(),
remix({ routes, presets: [vercelPreset()] }),
tsconfigPaths(),
iconsSpritesheet({
inputDir: "./resources/icons",
outputDir: "./app/library/icon/icons",
withTypes: true,
fileName: "icon.svg",
}),
],
define: {
POSTHOG_API_KEY: JSON.stringify(process.env.POSTHOG_API_KEY),
POSTHOG_API_ENDPOINT: JSON.stringify(process.env.POSTHOG_API_ENDPOINT),
},
ssr: {
noExternal: ["remix-i18next"],
},
server: {
open: true,
port: 3000,
},
});