Skip to content

Commit

Permalink
chore: type check website scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Oct 13, 2023
1 parent 55d86ae commit ac329e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions website/scripts/algolia-sync.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
import { indexToAlgolia } from '@theguild/algolia';

const source = 'WS';

const domain = process.env.SITE_URL;
if (!domain) {
throw new Error('Missing domain');
}

indexToAlgolia({
nextra: {
docsBaseDir: 'src/pages/',
source,
domain,
sitemapXmlPath: 'public/sitemap.xml',
},
source: 'WS',
domain: process.env.SITE_URL,
lockfilePath: 'algolia-lockfile.json',
source,
domain,
sitemapXmlPath: 'public/sitemap.xml',
lockfilePath: 'algolia-lockfile.json',
dryMode: process.env.ALGOLIA_DRY_RUN === 'true',
});
1 change: 1 addition & 0 deletions website/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"include": [
"src",
"scripts",
"next.config.mjs",
"postcss.config.cjs",
"tailwind.config.cjs",
Expand Down

0 comments on commit ac329e5

Please sign in to comment.