Update Astro and Payload dependencies

This commit is contained in:
Max Schmidt
2023-06-07 10:21:48 +02:00
parent 3a39f967ef
commit 36678d38b7
8 changed files with 417 additions and 557 deletions

1
astro/.gitignore vendored
View File

@ -6,6 +6,7 @@ dist/
# dependencies
node_modules/
yarn.lock
# logs
npm-debug.log*

View File

@ -8,16 +8,16 @@
"build": "astro build"
},
"dependencies": {
"@astrojs/image": "^0.16.8",
"@astrojs/prefetch": "^0.2.1",
"@astrojs/sitemap": "^1.3.1",
"@astrojs/tailwind": "3.1.2",
"astro": "^2.4.5",
"astro-compress": "^1.1.43",
"astro-critters": "^1.1.34",
"@astrojs/image": "^0.17.0",
"@astrojs/prefetch": "^0.2.3",
"@astrojs/sitemap": "^1.3.3",
"@astrojs/tailwind": "3.1.3",
"astro": "^2.6.1",
"astro-compress": "^1.1.47",
"astro-critters": "^1.1.38",
"css-select": "5.1.0",
"sharp": "^0.32.1",
"slate-serializers": "0.0.32",
"slate-serializers": "0.1.0",
"tailwindcss": "^3.0.24"
}
}

View File

@ -2,7 +2,7 @@ import type { Post } from "../types";
const url = import.meta.env.DEV
? "http://payload:3001"
: `https://${import.meta.env.PAYLOAD_URL}`;
: `${import.meta.env.PAYLOAD_SERVER_URL}`;
export const getPosts = async () =>
(await (await fetch(`${url}/api/posts`)).json()).docs as Post[];

File diff suppressed because it is too large Load Diff