sailfork / t3code-github / apps/ marketing/ astro.config.mjs

import { defineConfig } from "astro/config";

// Astro loads env with an empty prefix, and under `vp run` Vite+'s loadEnv then reports every
// variable to the task cache. Any env difference (TERM, VP_RAW_SUBCOMMAND, an agent's session
// vars) would rerun `astro check`. Without the runner client, loadEnv reads process.env directly;
// file tracking does not use this client.
delete process.env.VP_RUN_NODE_CLIENT_PATH;

export default defineConfig({
  site: "https://t3.codes",
  // Vercel 308s `/path/` to `/path` (see vercel.ts), so every internal link and canonical uses one form.
  trailingSlash: "never",
  server: {
    port: Number(process.env.PORT ?? 4173),
  },
});