2024-01-21 12:28:48 +00:00
|
|
|
import icon from "astro-icon";
|
|
|
|
import { defineConfig } from "astro/config";
|
|
|
|
import node from "@astrojs/node";
|
2024-01-21 13:42:52 +00:00
|
|
|
import astroMetaTags from "astro-meta-tags";
|
2024-03-10 20:24:36 +00:00
|
|
|
import { loadEnv } from "vite";
|
|
|
|
const { ASTRO_PORT, ASTRO_HOST } = loadEnv(process.env.NODE_ENV, process.cwd(), "");
|
2024-01-21 12:28:48 +00:00
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
|
|
|
output: "server",
|
|
|
|
srcDir: "./src",
|
|
|
|
publicDir: "./public",
|
|
|
|
outDir: "./dist",
|
|
|
|
adapter: node({
|
|
|
|
mode: "standalone",
|
|
|
|
}),
|
|
|
|
integrations: [
|
2024-01-21 13:42:52 +00:00
|
|
|
astroMetaTags(),
|
2024-01-21 12:28:48 +00:00
|
|
|
icon({
|
|
|
|
include: {
|
|
|
|
"material-symbols": ["*"], // Loads entire Material Design Icon set
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
2024-03-09 22:49:48 +00:00
|
|
|
// devToolbar: { enabled: false },
|
2024-01-21 12:28:48 +00:00
|
|
|
server: {
|
2024-03-10 20:24:36 +00:00
|
|
|
port: parseInt(ASTRO_PORT),
|
|
|
|
host: ASTRO_HOST,
|
2024-01-21 12:28:48 +00:00
|
|
|
},
|
|
|
|
});
|
2024-03-10 20:24:36 +00:00
|
|
|
|
|
|
|
console.log(import.meta.env)
|