Skip to content

Commit

Permalink
Astro 5
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Dec 13, 2024
1 parent 002c682 commit c9bc121
Show file tree
Hide file tree
Showing 6 changed files with 1,119 additions and 603 deletions.
125 changes: 61 additions & 64 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,69 +11,67 @@ export default defineConfig({
domains: ['image.mux.com'],
},
trailingSlash: 'never',
experimental: {
globalRoutePriority: true,
env: {
schema: {
DEPLOYMENT_DESTINATION: envField.string({
context: 'server',
access: 'secret',
default: 'development',
}),
DRAFT_MODE_HOSTNAME: envField.string({
context: 'server',
access: 'secret',
default: 'localhost',
}),
PUBLIC_HOSTNAME: envField.string({
context: 'client',
access: 'public',
optional: true,
}),
DATOCMS_API_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
SECRET_API_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
FASTLY_KEY: envField.string({
context: 'server',
access: 'secret',
}),
FASTLY_SERVICE_ID: envField.string({
context: 'server',
access: 'secret',
}),
ROLLBAR_TOKEN: envField.string({
context: 'server',
access: 'secret',
optional: true,
}),
PIPEDRIVE_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
MAILERLITE_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
RECAPTCHA_SECRET_KEY: envField.string({
context: 'server',
access: 'secret',
}),
SLACK_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
RECAPTCHA_KEY: envField.string({
context: 'client',
access: 'public',
}),
},
validateSecrets: false,

env: {
schema: {
DEPLOYMENT_DESTINATION: envField.string({
context: 'server',
access: 'secret',
default: 'development',
}),
DRAFT_MODE_HOSTNAME: envField.string({
context: 'server',
access: 'secret',
default: 'localhost',
}),
PUBLIC_HOSTNAME: envField.string({
context: 'client',
access: 'public',
optional: true,
}),
DATOCMS_API_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
SECRET_API_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
FASTLY_KEY: envField.string({
context: 'server',
access: 'secret',
}),
FASTLY_SERVICE_ID: envField.string({
context: 'server',
access: 'secret',
}),
ROLLBAR_TOKEN: envField.string({
context: 'server',
access: 'secret',
optional: true,
}),
PIPEDRIVE_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
MAILERLITE_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
RECAPTCHA_SECRET_KEY: envField.string({
context: 'server',
access: 'secret',
}),
SLACK_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
RECAPTCHA_KEY: envField.string({
context: 'client',
access: 'public',
}),
},
validateSecrets: false,
},
devToolbar: {
enabled: false,
Expand Down Expand Up @@ -210,11 +208,10 @@ export default defineConfig({
'/docs/project-starters-and-templates/project-starter-button':
'/docs/general-concepts/project-starters-and-templates#generate-a-project-starter-button',
'/blog/headless-cms-unconventional-use-cases': '/customer-stories/trip-to-japan',
'/docs/plugin-sdk/': '/docs/plugin-sdk/introduction',
'/docs/plugin-sdk': '/docs/plugin-sdk/introduction',
'/docs/general-concepts/environments':
'/docs/general-concepts/primary-and-sandbox-environments',
'/docs/react/[...rest]': '/docs/next-js/[...rest]',
'/docs/plugin-sdk': '/docs/plugin-sdk/introduction',
'/marketplace/plugins/i/datocms-plugin-gatsby-cloud': '/',
'/docs/content-management-api/resources/sso-token':
'/docs/content-management-api/resources/sso-settings/generate_token',
Expand Down
Loading

0 comments on commit c9bc121

Please sign in to comment.