Migrate Astro to latest version and update dependencies
- Updated Astro core package and related integrations to latest versions - Added environment variable configuration in astro.config.mjs - Removed deprecated migration plan and favicon.svg files - Updated Search component to use onCleanup for proper effect cleanup - Updated Appwrite service integration and configuration - Removed old migration documentation and scripts
This commit is contained in:
1 parent
e5ce8e4783
commit
73db6d2cd3
14 files changed
+197
-114
No files matched your search
+22
-2
@@ -1,4 +1,4 @@
|
||||
import { defineConfig } from "astro/config"
|
||||
import { defineConfig, envField } from "astro/config"
|
||||
import mdx from "@astrojs/mdx"
|
||||
import sitemap from "@astrojs/sitemap"
|
||||
import tailwind from "@astrojs/tailwind"
|
||||
@@ -10,5 +10,25 @@ export default defineConfig({
|
||||
site: "https://spaghet.io",
|
||||
integrations: [mdx(), sitemap(), solidJs(), tailwind({ applyBaseStyles: false })],
|
||||
output: "server",
|
||||
adapter: node({ mode: "ssr" })
|
||||
adapter: node({ mode: "ssr" }),
|
||||
env: {
|
||||
schema: {
|
||||
VITE_APPWRITE_ENDPOINT: envField.string({ context: "server", access: "public" }),
|
||||
VITE_APPWRITE_PROJECT_ID: envField.string({ context: "server", access: "public" }),
|
||||
VITE_APPWRITE_BUCKET_ID: envField.string({ context: "server", access: "public" }),
|
||||
VITE_APPWRITE_DATABASE_ID: envField.string({ context: "server", access: "public" }),
|
||||
VITE_APPWRITE_BLOG_COLLECTION_ID: envField.string({ context: "server", access: "public" }),
|
||||
VITE_APPWRITE_PROJECTS_COLLECTION_ID: envField.string({ context: "server", access: "public" }),
|
||||
VITE_APPWRITE_WORK_COLLECTION_ID: envField.string({ context: "server", access: "public" }),
|
||||
VITE_APPWRITE_LEGAL_COLLECTION_ID: envField.string({ context: "server", access: "public" }),
|
||||
PUBLIC_APPWRITE_ENDPOINT: envField.string({ context: "client", access: "public" }),
|
||||
PUBLIC_APPWRITE_PROJECT_ID: envField.string({ context: "client", access: "public" }),
|
||||
PUBLIC_APPWRITE_BUCKET_ID: envField.string({ context: "client", access: "public" }),
|
||||
PUBLIC_APPWRITE_DATABASE_ID: envField.string({ context: "client", access: "public" }),
|
||||
PUBLIC_APPWRITE_BLOG_COLLECTION_ID: envField.string({ context: "client", access: "public" }),
|
||||
PUBLIC_APPWRITE_PROJECTS_COLLECTION_ID: envField.string({ context: "client", access: "public" }),
|
||||
PUBLIC_APPWRITE_WORK_COLLECTION_ID: envField.string({ context: "client", access: "public" }),
|
||||
PUBLIC_APPWRITE_LEGAL_COLLECTION_ID: envField.string({ context: "client", access: "public" }),
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user