forked from ricocc/ricoui-astro-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
33 lines (29 loc) · 913 Bytes
/
Copy pathastro.config.mjs
File metadata and controls
33 lines (29 loc) · 913 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
32
33
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import { fileURLToPath } from "url";
import path from "path";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// Get the site URL from environment variables, or use the default value if not set
// Note: After the first deployment, be sure to set the correct PUBLIC_SITE_URL in the .env file
const siteUrl = import.meta.env.PUBLIC_SITE_URL || 'https://ricoui-astro-starter.vercel.app/';
// https://astro.build/config
export default defineConfig({
site: siteUrl,
base: '/',
envPrefix: 'PUBLIC_',
vite: {
plugins: [tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
},
server: {
host: '127.0.0.1',
port: 5200,
},
integrations: [mdx(), sitemap()],
});