Update to Astro V5

This commit is contained in:
Jorge Vargas 2025-01-11 15:38:03 -06:00
parent d61ce20e5d
commit e57775833b
4 changed files with 934 additions and 469 deletions

View file

@ -2,7 +2,7 @@
import { defineConfig } from 'astro/config' import { defineConfig } from 'astro/config'
import tailwind from '@astrojs/tailwind' import tailwind from '@astrojs/tailwind'
import node from '@astrojs/node' import node from '@astrojs/node'
import react from '@astrojs/react'; import react from '@astrojs/react'
import paraglide from '@inlang/paraglide-astro' import paraglide from '@inlang/paraglide-astro'
import icon from 'astro-icon' import icon from 'astro-icon'
@ -26,8 +26,5 @@ export default defineConfig({
react() react()
], ],
output: 'server', output: 'server',
adapter: node({ mode: 'standalone' }), adapter: node({ mode: 'standalone' })
security: { })
checkOrigin: true
}
})

View file

@ -12,10 +12,10 @@
"dependencies": { "dependencies": {
"@apollo/client": "^3.11.4", "@apollo/client": "^3.11.4",
"@apollo/server": "^4.11.2", "@apollo/server": "^4.11.2",
"@astrojs/node": "^8.3.3", "@astrojs/node": "9.0.0",
"@astrojs/react": "^3.6.2", "@astrojs/react": "4.1.3",
"@astrojs/rss": "^4.0.7", "@astrojs/rss": "4.0.11",
"@astrojs/tailwind": "^5.1.1", "@astrojs/tailwind": "5.1.4",
"@eddeee888/gcg-typescript-resolver-files": "^0.10.4", "@eddeee888/gcg-typescript-resolver-files": "^0.10.4",
"@graphql-codegen/cli": "^5.0.2", "@graphql-codegen/cli": "^5.0.2",
"@graphql-tools/merge": "^9.0.6", "@graphql-tools/merge": "^9.0.6",
@ -28,7 +28,7 @@
"@types/react": "^18.3.12", "@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1", "@types/react-dom": "^18.3.1",
"apollo-upload-client": "^18.0.1", "apollo-upload-client": "^18.0.1",
"astro": "^4.15.7", "astro": "5.1.5",
"astro-icon": "^1.1.1", "astro-icon": "^1.1.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"fast-glob": "^3.3.2", "fast-glob": "^3.3.2",

View file

@ -1,13 +1,13 @@
{ {
"extends": "astro/tsconfigs/strict", "extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
"jsxImportSource": "react", "jsxImportSource": "react",
"baseUrl": "src", "baseUrl": "src",
"paths": { "paths": {
"@/graphql/*": [ "@/graphql/*": ["graphql/*"]
"graphql/*"
],
} }
} }
} }

1376
yarn.lock

File diff suppressed because it is too large Load diff