diff --git a/apps/frontend/.env.example b/apps/frontend/.env.example index d9a0c17..ba675d4 100644 --- a/apps/frontend/.env.example +++ b/apps/frontend/.env.example @@ -1 +1,2 @@ TURNSTILE_PUBLIC=1x00000000000000000000AA +DEV_API_TARGET=http://localhost:8000 diff --git a/apps/frontend/nuxt.config.ts b/apps/frontend/nuxt.config.ts index 25af62f..83fc3cb 100644 --- a/apps/frontend/nuxt.config.ts +++ b/apps/frontend/nuxt.config.ts @@ -31,10 +31,16 @@ export default defineNuxtConfig({ htmlAttrs: { lang: 'en', }, + script: [ + { + src: 'https://tally.so/widgets/embed.js', + }, + ], }, }, sitemap: { sitemapsPathPrefix: '/', + zeroRuntime: true, }, ogImage: { fonts: [ @@ -99,14 +105,18 @@ export default defineNuxtConfig({ name: 'Blueprint', }, nitro: { + // Allow switching dev API target via DEV_API_TARGET (e.g., https://blueprint.zip) + // Falls back to local backend when unset. devProxy: { '/api': { - // Change to https://blueprint.zip/api to use the production API - // Local API is http://localhost:8000/api - target: 'http://localhost:8000/api', + // Local API was previously at http://localhost:8000/api — keep behaviour by stripping trailing slash from DEV_API_TARGET when set. + target: process.env.DEV_API_TARGET?.replace(/\/$/, '') || 'http://localhost:8000', + changeOrigin: true, + }, + '/browse/sitemap.xml': { + target: process.env.DEV_API_TARGET?.replace(/\/$/, '') || 'http://localhost:8000', changeOrigin: true, }, - '/browse/sitemap.xml': 'http://localhost:8000/browse/sitemap.xml', '/yay': 'https://blueprint.zip/yay', }, routeRules: { @@ -125,7 +135,7 @@ export default defineNuxtConfig({ }, }, plausible: { - apiHost: 'https://blueprint.zip/yay', + apiHost: 'https://plausible.prpl.wtf', domain: 'blueprint.zip', autoOutboundTracking: true, ignoredHostnames: ['localhost'], diff --git a/apps/frontend/src/components/ui/browse/Filters.vue b/apps/frontend/src/components/ui/browse/Filters.vue index f320946..aad59b8 100644 --- a/apps/frontend/src/components/ui/browse/Filters.vue +++ b/apps/frontend/src/components/ui/browse/Filters.vue @@ -27,6 +27,35 @@ + +
+
+ + Price +
+
+ +
+ Free + Paid +
+
+
+