Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Jan 23, 2024
1 parent 9617205 commit a04b053
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions apps/website/gatsby-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
// pick it up instead of the JS file.

import { getPages } from '@custom/decap';
import autoload from '@custom/schema/gatsby-autoload';
import { resolve } from 'path';

// @ts-ignore
import autoload from './node_modules/@custom/schema/build/autoload.mjs';

const dir = resolve('node_modules/@custom/decap/data/page');

process.env.GATSBY_DRUPAL_URL =
Expand Down
3 changes: 3 additions & 0 deletions apps/website/src/types/gatsby-autoload.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module '@custom/schema/gatsby-autoload' {
export default Record<string, Function>;
}
3 changes: 3 additions & 0 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
],
"./operations": [
"./build/operations.json"
],
"./gatsby-autoload": [
"./build/gatsby-autoload.mjs"
]
},
"typesVersions": {
Expand Down

0 comments on commit a04b053

Please sign in to comment.