generated from autonomic-cooperative/astro-payload-template
Compare commits
2 Commits
ba6ca90c3a
...
f94bc5d822
Author | SHA1 | Date | |
---|---|---|---|
f94bc5d822 | |||
370eac2b25 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@
|
||||
data
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
/types/payload-types.ts
|
3
astro/.gitignore
vendored
3
astro/.gitignore
vendored
@ -16,6 +16,3 @@ pnpm-debug.log*
|
||||
|
||||
# macOS-specific files
|
||||
.DS_Store
|
||||
|
||||
# types
|
||||
src/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"
|
||||
|
@ -4,7 +4,8 @@
|
||||
"types": ["@astrojs/image/client"],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
"@/*": ["src/*"],
|
||||
"@/types/*": ["../types/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,6 @@ export default buildConfig({
|
||||
},
|
||||
collections: [Posts, Users, Authors, Media],
|
||||
typescript: {
|
||||
outputFile: path.resolve("/", "types.ts"),
|
||||
outputFile: path.resolve("../types/", "payload-types.ts"),
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user