From fed4cc2d97456ce98a8c8b063d6025c4f01de26e Mon Sep 17 00:00:00 2001 From: raae Date: Sat, 25 May 2024 12:11:39 +0200 Subject: [PATCH] chore: add netlify adapter --- astro.config.mjs | 8 +++----- package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 5d83dcd..d2ee9c4 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,13 +1,11 @@ import { defineConfig } from "astro/config"; -import node from "@astrojs/node"; - import db from "@astrojs/db"; +import netlify from "@astrojs/netlify"; + // https://astro.build/config export default defineConfig({ output: "server", - adapter: node({ - mode: "standalone" - }), + adapter: netlify(), integrations: [db()] }); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e6faf80..a801855 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@astrojs/check": "^0.5.4", "@astrojs/db": "^0.10.5", - "@astrojs/netlify": "^5.1.2", + "@astrojs/netlify": "^5.2.1", "@astrojs/node": "^8.2.0", "astro": "^4.4.0", "dotenv": "^16.4.4", @@ -267,9 +267,9 @@ } }, "node_modules/@astrojs/netlify": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@astrojs/netlify/-/netlify-5.1.3.tgz", - "integrity": "sha512-zHxEHbFo+qw0jIXraxtEtgOpyit/vH8au/Kvl3DMZeG9cR71folOVIMKdxkLXewBnW/BPQsdDdl7HY7HPvylLw==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/@astrojs/netlify/-/netlify-5.2.1.tgz", + "integrity": "sha512-R2aXCwNblh7VwC8lXxOStDebGSI6cpOk2s39sT5Oi8XED8NkNfoL7ERahP962jfJE8O4TU1h1hhfY7ZUNXijbA==", "dependencies": { "@astrojs/underscore-redirects": "^0.3.3", "@netlify/functions": "^2.0.1", diff --git a/package.json b/package.json index 6b16cf6..ef5bd42 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/check": "^0.5.4", "@astrojs/db": "^0.10.5", - "@astrojs/netlify": "^5.1.2", + "@astrojs/netlify": "^5.2.1", "@astrojs/node": "^8.2.0", "astro": "^4.4.0", "dotenv": "^16.4.4",