mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 10:29:21 +03:00
38 lines
890 B
JavaScript
38 lines
890 B
JavaScript
import { defineConfig, envField } from "astro/config";
|
|
|
|
/**
|
|
* Integrations
|
|
*/
|
|
import node from "@astrojs/node";
|
|
import solidJs from "@astrojs/solid-js";
|
|
import icon from "astro-icon";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: "https://yarkov.tech",
|
|
compressHTML: true,
|
|
output: "server",
|
|
server: {
|
|
port: 9966,
|
|
host: true,
|
|
allowedHosts: ["showcase.yarkov.tech"],
|
|
},
|
|
adapter: node({
|
|
mode: "standalone",
|
|
}),
|
|
env: {
|
|
schema: {
|
|
DIRECTUS_URL: envField.string({ context: "server", access: "secret", default: "" }),
|
|
DIRECTUS_URL_GRAPHQL: envField.string({
|
|
context: "server",
|
|
access: "secret",
|
|
default: "http://directus:8055/graphql",
|
|
}),
|
|
DIRECTUS_TOKEN: envField.string({ context: "server", access: "secret", default: "" }),
|
|
},
|
|
},
|
|
integrations: [icon(), solidJs()],
|
|
trailingSlash: "ignore",
|
|
scopedStyleStrategy: "where",
|
|
});
|