Update Astro and Payload dependencies
This commit is contained in:
1
astro/.gitignore
vendored
1
astro/.gitignore
vendored
@ -6,6 +6,7 @@ dist/
|
||||
|
||||
# dependencies
|
||||
node_modules/
|
||||
yarn.lock
|
||||
|
||||
# logs
|
||||
npm-debug.log*
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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[];
|
||||
|
934
astro/yarn.lock
934
astro/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user