Talaxasy
Talaxasy
NNuxt
Created by Talaxasy on 4/1/2024 in #❓・help
useNuxtApp doesn't have my custom plugins
No description
3 replies
NNuxt
Created by Talaxasy on 6/2/2023 in #❓・help
How to connect Azure Cache for Redis to nitro
I had tried to connect redis like this: nitro.config.ts
...
storage: {
redis: {
driver: 'redis',
url: '*****.redis.cache.windows.net:****,password=******************=,ssl=True,abortConnect=False',
},
},
...
...
storage: {
redis: {
driver: 'redis',
url: '*****.redis.cache.windows.net:****,password=******************=,ssl=True,abortConnect=False',
},
},
...
But getting this error: At PipeConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) [11:32:42 AM] [ioredis] Unhandled error event: Error: connect ENOENT
1 replies
NNuxt
Created by Talaxasy on 5/19/2023 in #❓・help
How to use env variables inside /utils folder?
I want to access env variables from inside /utils folder for ex.: I have constants.ts file and there:
export const isDev = process.env.NODE_ENV === 'development';
export const isConsoleDebugSee = process.env.CONSOLE_DEBUG;
export const isConsoleDebug = process.env.CONSOLE_DEBUG
? process.env.CONSOLE_DEBUG === 'true'
: undefined;
export const isPreviewDebug = process.env.DISPLAY_PREVIEW_CONETENT
? process.env.DISPLAY_PREVIEW_CONETENT === 'true'
: undefined;
export const isConsole =
typeof isConsoleDebug !== 'undefined' ? isConsoleDebug : isDev;
export const isPreview =
typeof isPreviewDebug !== 'undefined' ? isPreviewDebug : isDev;
export const isDev = process.env.NODE_ENV === 'development';
export const isConsoleDebugSee = process.env.CONSOLE_DEBUG;
export const isConsoleDebug = process.env.CONSOLE_DEBUG
? process.env.CONSOLE_DEBUG === 'true'
: undefined;
export const isPreviewDebug = process.env.DISPLAY_PREVIEW_CONETENT
? process.env.DISPLAY_PREVIEW_CONETENT === 'true'
: undefined;
export const isConsole =
typeof isConsoleDebug !== 'undefined' ? isConsoleDebug : isDev;
export const isPreview =
typeof isPreviewDebug !== 'undefined' ? isPreviewDebug : isDev;
In a frontend console I see that CONSOLE_DEBUG always is undefined, but I have access to process.env.NODE_ENV
3 replies
NNuxt
Created by Talaxasy on 4/17/2023 in #❓・help
From validation library
Hello guys, could you suggest me the best solution for form validation, desirable for Nuxt (like module. But this is optional)
14 replies
NNuxt
Created by Talaxasy on 12/15/2022 in #❓・help
Broken Layout transitions
1 replies