thergbcrow
thergbcrow
NNuxt
Created by thergbcrow on 4/11/2025 in #❓・help
Nuxt3 Generate - static assets relative path
import { app, BrowserWindow } from 'electron' import express, { static as serveStatic } from 'express' import * as path from "node:path"; import { fileURLToPath } from 'url'; import 'dotenv/config' import titleBar from "./modules/title-bar.js"; const filename = fileURLToPath(import.meta.url); const public = path.join(path.dirname(filename), '../.output/public') const createWindow = () => { return new BrowserWindow({ width: 1440, height: 1024, minWidth: 1024, minHeight: 676, backgroundColor: '#000', webPreferences: { webSecurity: false, nodeIntegration: true, contextIsolation: false, }, titleBarStyle: 'hiddenInset', }) } const startServer = (window) => { if(process.env.NODE_ENV !== 'dev') { const server = express() server.use('/', serveStatic(public)) const listener = server.listen(8079, 'localhost', () => { const port = (listener.address()).port window.loadURL(http://localhost:${port}) console.log([+] Serving from http://localhost:${port}) }) } window.loadURL(http://localhost:3000) console.log([+] Serving from http://localhost:3000}) } app.on('ready', () => { const browserWindow = createWindow() startServer(browserWindow) titleBar(browserWindow) }) SOLVED
5 replies
NNuxt
Created by thergbcrow on 2/12/2025 in #❓・help
Remove stack from createError()
@kapa.ai I've already tried doing this, however, in the production build, it still continues to show the stack in the responses.
9 replies
NNuxt
Created by thergbcrow on 2/2/2025 in #❓・help
Getting Cookie From Middleware
@kapa.ai shud i use httpOnly cookie?
19 replies
NNuxt
Created by thergbcrow on 2/2/2025 in #❓・help
Getting Cookie From Middleware
@kapa.ai useRequestHeaders() is retuning a empty array when using in a middleware to protect pages
19 replies
NNuxt
Created by PlayTexX on 2/19/2024 in #❓・help
Tailwind Jetbrains Intellisense
Yes… i have the same issue
8 replies
NNuxt
Created by thergbcrow on 2/18/2024 in #❓・help
how can i redirect a user using serverMiddleware
No description
4 replies
NNuxt
Created by thergbcrow on 2/18/2024 in #❓・help
how can i redirect a user using serverMiddleware
@WhoRainZone1 does work on my side :(... Even the api calls don't work, it seems like it gets stuck in a redirection loop
4 replies