generated from autonomic-cooperative/astro-payload-template
Save generated payload types in astro types folder
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ba6ca90c3a
commit
370eac2b25
2
astro/.gitignore
vendored
2
astro/.gitignore
vendored
@ -18,4 +18,4 @@ pnpm-debug.log*
|
||||
.DS_Store
|
||||
|
||||
# types
|
||||
src/types.ts
|
||||
src/types/payload-types.ts
|
@ -1,4 +1,4 @@
|
||||
import type { Post } from "@/types";
|
||||
import type { Post } from "@/types/payload-types";
|
||||
|
||||
const url = import.meta.env.DEV
|
||||
? "http://payload:3001"
|
||||
|
@ -22,6 +22,6 @@ export default buildConfig({
|
||||
},
|
||||
collections: [Posts, Users, Authors, Media],
|
||||
typescript: {
|
||||
outputFile: path.resolve("/", "types.ts"),
|
||||
outputFile: path.resolve("../astro/src/types/", "payload-types.ts"),
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user