#How to set TAURI_DEV_IGNORE_FILE

6 messages · Page 1 of 1 (latest)

lusty stone
#

I want to seta environment-variable TAURI_DEV_IGNORE_FILE to .tauriignore, that ignores every *.sqlite. But I don't know where to set the variable. I tried it in the .env of vite, a .env.development in the tauri source folder and I tried to set it directly in windows. But I don't get it to work, maybe I am just lost xD. I hope someone can help me and thank you already once

uncut comet
#

So .env files indeed don't matter, that's mostly a frontend bundler thing.

and I tried to set it directly in windows
Did you restart your system afterwards?

You can also set it per terminal session. If you use powershell you could do ```pwsh
$env:TAURI_DEV_IGNORE_FILE="whatever"
npm run tauri dev

lusty stone
#

After the restart it works xD thanks. But I have another problem if I ignore everything in the ignorefile with * it works, but I can't disable just the prisma folder, where the database gets generated and triggers a reload. Am I doing something wrong?

uncut comet
#

i'm not quite sure how it resolves it tbh. maybe try a few different variations like ```gitignore
/prisma/
/prisma
prisma/
sast-api/prisma
**/prisma

#

idk something has to work x)