From a1f8b3e91e5e0fa607a7665b9d8d53e424e1f4c4 Mon Sep 17 00:00:00 2001 From: Graham Hall Date: Thu, 8 Dec 2022 09:36:58 -0500 Subject: [PATCH] netlify config --- astro.config.mjs | 8 +++++++- package-lock.json | 19 +++++++++++++++++++ package.json | 1 + 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 5ada091..c17f4c0 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,4 +1,10 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config -export default defineConfig({ output: 'server' }); +import netlify from "@astrojs/netlify/functions"; + +// https://astro.build/config +export default defineConfig({ + output: 'server', + adapter: netlify() +}); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7d18ad7..63c6148 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "@example/basics", "version": "0.0.1", "dependencies": { + "@astrojs/netlify": "^1.2.2", "@picocss/pico": "^1.5.6", "astro": "^1.6.13", "astro-remote": "^0.2.3", @@ -100,6 +101,15 @@ "vfile-message": "^3.0.0" } }, + "node_modules/@astrojs/netlify": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@astrojs/netlify/-/netlify-1.2.2.tgz", + "integrity": "sha512-EfDAK7A0S0080HVGz4zheXD2yyGFebSoRe7yXbkj/S6gW657NrgixYYzJDn+aoQluLXdQ2s6JxErwczwKgJBcQ==", + "dependencies": { + "@astrojs/webapi": "^1.1.1", + "esbuild": "^0.15.18" + } + }, "node_modules/@astrojs/prism": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@astrojs/prism/-/prism-1.0.2.tgz", @@ -5760,6 +5770,15 @@ "vfile-message": "^3.0.0" } }, + "@astrojs/netlify": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@astrojs/netlify/-/netlify-1.2.2.tgz", + "integrity": "sha512-EfDAK7A0S0080HVGz4zheXD2yyGFebSoRe7yXbkj/S6gW657NrgixYYzJDn+aoQluLXdQ2s6JxErwczwKgJBcQ==", + "requires": { + "@astrojs/webapi": "^1.1.1", + "esbuild": "^0.15.18" + } + }, "@astrojs/prism": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@astrojs/prism/-/prism-1.0.2.tgz", diff --git a/package.json b/package.json index 07d152a..22cce32 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "astro": "astro" }, "dependencies": { + "@astrojs/netlify": "^1.2.2", "@picocss/pico": "^1.5.6", "astro": "^1.6.13", "astro-remote": "^0.2.3",