Save generated payload types in astro types folder
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tobias 2024-05-20 14:06:01 +02:00
parent ba6ca90c3a
commit 370eac2b25
3 changed files with 3 additions and 3 deletions

2
astro/.gitignore vendored
View File

@ -18,4 +18,4 @@ pnpm-debug.log*
.DS_Store .DS_Store
# types # types
src/types.ts src/types/payload-types.ts

View File

@ -1,4 +1,4 @@
import type { Post } from "@/types"; import type { Post } from "@/types/payload-types";
const url = import.meta.env.DEV const url = import.meta.env.DEV
? "http://payload:3001" ? "http://payload:3001"

View File

@ -22,6 +22,6 @@ export default buildConfig({
}, },
collections: [Posts, Users, Authors, Media], collections: [Posts, Users, Authors, Media],
typescript: { typescript: {
outputFile: path.resolve("/", "types.ts"), outputFile: path.resolve("../astro/src/types/", "payload-types.ts"),
}, },
}); });