-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathastro.config.mjs
More file actions
31 lines (30 loc) · 859 Bytes
/
astro.config.mjs
File metadata and controls
31 lines (30 loc) · 859 Bytes
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
// @ts-check
import vercel from "@astrojs/vercel"
import { defineConfig, envField } from "astro/config"
export default defineConfig({
site: "https://www.dresan.dev/",
output: "server",
adapter: vercel(),
redirects: {
"/": {
status: 301,
destination: "/es/",
},
},
i18n: {
defaultLocale: "es",
locales: ["es", "en"],
routing: {
prefixDefaultLocale: true,
},
},
env: {
schema: {
HOST_URL: envField.string({ context: "client", access: "public" }),
FORM_ID: envField.string({ context: "client", access: "public" }),
SPOTIFY_REFRESH_TOKEN: envField.string({ context: "server", access: "secret" }),
SPOTIFY_CLIENT_ID: envField.string({ context: "server", access: "secret" }),
SPOTIFY_CLIENT_SECRET: envField.string({ context: "server", access: "secret" }),
},
},
})