We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d55527 commit 62ad412Copy full SHA for 62ad412
apps/www/scripts/generate-sitemap.mts
@@ -1,10 +1,15 @@
1
import fs from 'fs';
2
import { globby } from 'globby';
3
import prettier from 'prettier';
4
+import path from 'path';
5
6
async function generate() {
7
const prettierConfig = await prettier.resolveConfig('./.prettierrc');
8
9
+ // Ensure directories exist
10
+ fs.mkdirSync('public', { recursive: true });
11
+ fs.mkdirSync('out', { recursive: true });
12
+
13
// Get static pages
14
const pages = await globby([
15
'app/**/page.tsx',
0 commit comments