-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.config.ts
38 lines (37 loc) · 866 Bytes
/
app.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
33
34
35
36
37
38
import { authVite } from "@solid-mediakit/auth-plugin";
import { defineConfig } from "@solidjs/start/config";
import { resolve } from "node:path";
import { SolidStartSiteMapPlugin } from "solid-start-sitemap";
export default defineConfig({
ssr: true,
middleware: "./src/server/middleware.ts",
server: {
compatibilityDate: "2024-11-05",
esbuild: {
options: {
target: "esnext",
},
},
},
vite: {
resolve: {
alias: { "@": resolve("./src") },
},
plugins: [
authVite({
redirectTo: "/",
log: true,
authOpts: {
name: "authOptions",
dir: "~/server/auth-options",
},
}),
SolidStartSiteMapPlugin({
hostname: process.env.VITE_HOST_URL,
replaceRouteParams: {
":locale?": ["de", "en"],
},
}),
],
},
});