Skip to content

Commit

Permalink
add env variable for conditional search engine indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonWingerAir committed Dec 28, 2023
1 parent 02190d3 commit 9016988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineNuxtConfig({
'@nuxtjs/apollo',
'nuxt-simple-robots'
],
site: { indexable: true },
site: { indexable: process.env.SEO_ENV == 'production' ? true : false },
runtimeConfig: {
public: {
baseURL: process.env.NUXT_APP_BASE_URL ? process.env.NUXT_APP_BASE_URL : process.env.PORT ? 'http://127.0.0.1:' + process.env.PORT : ''
Expand Down

0 comments on commit 9016988

Please sign in to comment.