The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: Try to fix the content-layer task in www (#27060)
Ivan Vasilov04251d7a36d0
diff --git a/apps/www/internals/fix-contentlayer-bug.mjs b/apps/www/internals/fix-contentlayer-bug.mjsdeleted file mode 100644index eab38b1934c..00000000000--- a/apps/www/internals/fix-contentlayer-bug.mjs+++ /dev/null@@ -1,29 +0,0 @@-import fs from 'fs'-import path from 'path'--// Path to the package within the global node_modules-const packagePath = path.resolve(process.cwd(), '../../node_modules/@contentlayer2')--// Path to the specific file you want to modify-const filePath = path.join(packagePath, 'core', 'dist', 'getConfig', 'index.js')--// Read the file-fs.readFile(filePath, 'utf8', (err, data) => {- if (err) {- console.error(`Error reading file: ${err}`)- return- }-- // Modify the file content- let modifiedContent = data.replace('../../../../', '../../../')-- // Write the modified content back to the file- fs.writeFile(filePath, modifiedContent, 'utf8', (err) => {- if (err) {- console.error(`Error writing file: ${err}`)- return- }-- console.log('fix-contentlayer-bug was successfull')- })-})diff --git a/apps/www/package.json b/apps/www/package.jsonindex 3a2134d0db5..26e0fcb8326 100644--- a/apps/www/package.json+++ b/apps/www/package.json@@ -11,7 +11,7 @@"typecheck": "npm run content:build && tsc --noEmit","content:build": "contentlayer2 build","prettier": "prettier --write \"./{pages,components,lib,stores,styles,tests}/**/*.{ts,tsx,md,js,jsx,json}\"",- "postbuild": "node ./internals/fix-contentlayer-bug.mjs && node ./internals/generate-sitemap.mjs"+ "postbuild": "node ./internals/generate-sitemap.mjs"},"dependencies": {"@code-hike/mdx": "^0.9.0",diff --git a/turbo.json b/turbo.jsonindex 4becaba6730..515c25446bb 100644--- a/turbo.json+++ b/turbo.json@@ -13,7 +13,7 @@"SUPABASE_URL","GITHUB_OAUTH_CLIENT_SECRET"],- "outputs": [".next/**", "!.next/cache/**"]+ "outputs": [".next/**", "!.next/cache/**", ".contentlayer/**"]},"docs#build": {"dependsOn": ["^build"],