Skip to content

Commit da7a27d

Browse files
authored
fix: move marketplace-sources.json to public directory for Vercel deployment (#13)
Move marketplace-sources.json from root to public/ directory to ensure it's included in Vercel's serverless deployment output. Update API path to read from public/ directory at runtime.
1 parent c22149e commit da7a27d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/server/api/marketplaces.get.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { marketplaceSchema, marketplaceSourcesConfigSchema } from '../utils/mark
1111
const fetchMarketplaces = defineCachedFunction(
1212
async (): Promise<MarketplaceAPIResponse> => {
1313
// Load marketplace sources configuration
14-
// Resolve path relative to the web app root
15-
const configPath = resolve(process.cwd(), 'marketplace-sources.json')
14+
// Resolve path from public directory (available in runtime)
15+
const configPath = resolve(process.cwd(), 'public/marketplace-sources.json')
1616
const configData = await readFile(configPath, 'utf-8')
1717
const parsedConfig = JSON.parse(configData)
1818

0 commit comments

Comments
 (0)