mirror of
https://github.com/trafficlunar/website.git
synced 2026-08-12 12:29:49 +00:00
feat: nekoweb
This commit is contained in:
parent
8a79da7030
commit
2722a7370b
4 changed files with 216 additions and 2 deletions
|
|
@ -1,15 +1,25 @@
|
|||
// @ts-check
|
||||
import { defineConfig } from "astro/config";
|
||||
import { env } from "node:process";
|
||||
import { loadEnv } from "vite";
|
||||
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import nekoweb from "@indiefellas/astro-adapter-nekoweb";
|
||||
import svelte from "@astrojs/svelte";
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
|
||||
const { NEKOWEB_API_KEY, NEKOWEB_COOKIE } = loadEnv(env.NODE_ENV ?? "", process.cwd(), "");
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
},
|
||||
site: "https://trafficlunar.net",
|
||||
adapter: nekoweb({
|
||||
apiKey: NEKOWEB_API_KEY,
|
||||
cookie: NEKOWEB_COOKIE,
|
||||
folder: "dist",
|
||||
}),
|
||||
integrations: [svelte(), sitemap()],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue