chore: project scaffold, specs, and working record
Build and deploy / build-and-deploy (push) Failing after 5s
Build and deploy / build-and-deploy (push) Failing after 5s
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { defineConfig } from 'astro/config';
|
||||
import mdx from '@astrojs/mdx';
|
||||
import sitemap from '@astrojs/sitemap';
|
||||
|
||||
// Canonical origin. Drives canonical URLs, OG tags, and the sitemap.
|
||||
const SITE = process.env.PUBLIC_SITE_URL ?? 'https://adr.smlcompany.ca';
|
||||
|
||||
export default defineConfig({
|
||||
site: SITE,
|
||||
|
||||
// Static output is the point of this rebuild — see docs/04-seo-spec.md.
|
||||
// Do not switch to a server adapter without an AGENTS.md Change Log entry.
|
||||
output: 'static',
|
||||
|
||||
// Directory-style URLs with a trailing slash, matched by the CloudFront
|
||||
// trailing-slash function. See docs/06-deployment.md.
|
||||
trailingSlash: 'always',
|
||||
build: { format: 'directory', inlineStylesheets: 'auto' },
|
||||
|
||||
integrations: [
|
||||
mdx(),
|
||||
sitemap({
|
||||
filter: (page) => !page.includes('/legal/'),
|
||||
changefreq: 'monthly',
|
||||
lastmod: new Date(),
|
||||
}),
|
||||
],
|
||||
|
||||
image: {
|
||||
// Explicit dimensions everywhere; never base64-inline an image.
|
||||
service: { entrypoint: 'astro/assets/services/sharp' },
|
||||
},
|
||||
|
||||
prefetch: { prefetchAll: true, defaultStrategy: 'viewport' },
|
||||
});
|
||||
Reference in New Issue
Block a user