Skip to content

Commit

Permalink
Netlify: Test a version without the new script
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Sep 6, 2024
1 parent f2c7227 commit 1a97c13
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 58 deletions.
29 changes: 6 additions & 23 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import keystatic from '@keystatic/astro'
import { defineConfig } from 'astro/config'
import { glob } from 'glob'
import remarkToc from 'remark-toc'

// ABOUT:
Expand All @@ -32,37 +31,21 @@ export default defineConfig({
output: ASTRO_OUTPUT_MODE,
adapter: ASTRO_USE_NETLIFY_ADAPTER === 'true' ? netlify() : undefined,
integrations: [
tailwind({
// https://github.com/withastro/astro/tree/main/packages/integrations/tailwind#applybasestyles
applyBaseStyles: false,
}),
// https://github.com/withastro/astro/tree/main/packages/integrations/tailwind#applybasestyles
tailwind({ applyBaseStyles: false }),
react(),
mdx(),
sitemap({
filter: (page) => !page.endsWith('README/'),
}),
sitemap({ filter: (page) => !page.endsWith('README/') }),
ASTRO_OUTPUT_MODE === 'hybrid' ? keystatic() : undefined,
],
markdown: {
remarkPlugins: [remarkToc],
},
markdown: { remarkPlugins: [remarkToc] },
site: 'https://www.osm-verkehrswende.org/',
redirects: {
'/mapswipe': '/crowdmap',
'/about': '/root',
},
vite: {
ssr: {
noExternal: ['route-snapper'],
},
optimizeDeps: {
exclude: ['route-snapper'],
},
plugins: [],
build: {
rollupOptions: {
external: [glob('scripts/**/*.*'), glob('keystatic/scripts/**/*.*')].flat(),
},
},
ssr: { noExternal: ['route-snapper'] },
optimizeDeps: { exclude: ['route-snapper'] },
},
})
11 changes: 0 additions & 11 deletions keystatic/scripts/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions keystatic/scripts/extractProjectKeys.ts

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "npm run extract-project-keys && astro dev",
"dev": "astro dev",
"start": "npm run dev",
"build": "astro build",
"build:local": "npm run extract-project-keys && ASTRO_OUTPUT_MODE=static astro build",
"build:local": "ASTRO_OUTPUT_MODE=static astro build",
"preview": "astro preview",
"astro": "astro",
"extract-project-keys": "bun run keystatic/scripts/extractProjectKeys.ts && prettier 'keystatic/extractedProjectKeys.ts' --write",
"generate-types": "astro sync --verbose && cat ./.astro/astro/content.d.ts",
"type-check": "astro check && tsc --skipLibCheck --noEmit",
"lint": "eslint",
Expand Down

0 comments on commit 1a97c13

Please sign in to comment.