Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable certain Nuxt 3 pages?

Sometimes you have unfinished pages you don't want to make publicly available yet but you still want to publish the rest of your work.

You can either strictly work with feature branches, or you rename your page file ending into something like .txt, or you move them out of the pages directory.

Is it somehow possible to disable certain pages of your Nuxt 3 app?

like image 866
Marian Klühspies Avatar asked Oct 23 '25 11:10

Marian Klühspies


1 Answers

you can add this settings file

nuxt.config.ts

  ignore:  [
        'components/web/**/*',
        'pages/auth/**/*',
        'pages/home/**/*',
        'pages/settings/**/*',
      ]

like image 73
productdevbook Avatar answered Oct 25 '25 20:10

productdevbook