Updated to Astro v5 beta.
All checks were successful
Build and deploy website / build (push) Successful in 1m56s

Created a new component for a collapsable list

Implemented some of the new features.
- astro:env
- New astro content layer

Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
2024-10-20 12:05:32 +02:00
parent 32f4c6aaf0
commit 941a93f8a5
17 changed files with 423 additions and 571 deletions

View File

@ -1,4 +1,5 @@
// @ts-check
import { defineConfig, envField } from "astro/config"
import paraglide from "@inlang/paraglide-astro"
import tailwind from "@astrojs/tailwind"
import sitemap from "@astrojs/sitemap"
@ -7,7 +8,6 @@ import node from "@astrojs/node"
import mdx from "@astrojs/mdx"
import icon from "astro-icon"
import { defineConfig } from "astro/config"
import { loadEnv } from "vite"
const { url } = process.env.URL
@ -36,5 +36,13 @@ export default defineConfig({
],
adapter: node({
mode: "standalone"
})
}),
env: {
schema: {
DOMAIN: envField.string({ context: "client", access: "public" }),
URL: envField.string({ context: "client", access: "public" }),
GIT_URL: envField.string({ context: "client", access: "public" }),
STATUS_URL: envField.string({ context: "client", access: "public" })
}
}
})