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
|
data
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.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
|
# macOS-specific files
|
||||||
.DS_Store
|
.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
|
const url = import.meta.env.DEV
|
||||||
? "http://payload:3001"
|
? "http://payload:3001"
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
"types": ["@astrojs/image/client"],
|
"types": ["@astrojs/image/client"],
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["src/*"]
|
"@/*": ["src/*"],
|
||||||
|
"@/types/*": ["../types/*"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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("../types/", "payload-types.ts"),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user