Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

astro.config.mjs

16 lines678 Bytes

1import { defineConfig } from "astro/config";
2​
3// Astro loads env with an empty prefix, and under `vp run` Vite+'s loadEnv then reports every
4// variable to the task cache. Any env difference (TERM, VP_RAW_SUBCOMMAND, an agent's session
5// vars) would rerun `astro check`. Without the runner client, loadEnv reads process.env directly;
6// file tracking does not use this client.
7delete process.env.VP_RUN_NODE_CLIENT_PATH;
8​
9export default defineConfig({
10 site: "https://t3.codes",
11 // Vercel 308s `/path/` to `/path` (see vercel.ts), so every internal link and canonical uses one form.
12 trailingSlash: "never",
13 server: {
14 port: Number(process.env.PORT ?? 4173),
15 },
16});