Titan
Titan
Explore posts from servers
NNuxt
Created by Titan on 10/29/2024 in #❓・help
[solved] Vue app aliases are not allowed in server runtime
found it, server was using a util from the client and although the function it used was pure, the file had some FE imports at the top
9 replies
NNuxt
Created by Titan on 10/29/2024 in #❓・help
[solved] Vue app aliases are not allowed in server runtime
@manniL thanks, thought as much but disabled all modules in nuxt.config.ts without success
9 replies
NNuxt
Created by Titan on 10/29/2024 in #❓・help
[solved] Add excludes to server tsconfig
found the answer: nuxt.config.ts
nitro: {
typescript: {
tsConfig: {
exclude: ['../dist/**/*', '../app-native/**/*', '../wrangler/**/*', '../.husky/**/*', '../.git/**/*']
}
}
nitro: {
typescript: {
tsConfig: {
exclude: ['../dist/**/*', '../app-native/**/*', '../wrangler/**/*', '../.husky/**/*', '../.git/**/*']
}
}
5 replies
NNuxt
Created by Robin on 4/9/2024 in #❓・help
Unit Tests for Nuxt's /server Directory
when using import getHandler from './signed-url.post' in my test
14 replies
NNuxt
Created by Robin on 4/9/2024 in #❓・help
Unit Tests for Nuxt's /server Directory
No description
14 replies
NNuxt
Created by Titan on 7/30/2024 in #❓・help
How to "mock" an H3 request with query string
figured it out:
const h3Event = {
method: 'GET',
path: '?email=bar'
}
const h3Event = {
method: 'GET',
path: '?email=bar'
}
2 replies
NNuxt
Created by Titan on 5/24/2024 in #❓・help
Dynamic/computed layout without causing content shift or re-render after route change
I decided to abandon layouts feature and just move them into components/layouts and wrap my page template with them instead. Problem fixed, no layout shifts anymore
2 replies
NNuxt
Created by Titan on 4/5/2024 in #❓・help
SOLVED: How to create server middleware just for API routes?
thanks I'll do that, just checking there wasn't an API or function built in to do that.
export default defineEventHandler(async event => {
if (event.path.startsWith('/api')) {
export default defineEventHandler(async event => {
if (event.path.startsWith('/api')) {
3 replies
NNuxt
Created by Titan on 2/29/2024 in #❓・help
Nuxt server API on subdomain
Yeah my current projects are fastify api running in AWS lambda but I really wanted to give fullstack Nuxt on the edge a go!
9 replies
NNuxt
Created by Titan on 2/29/2024 in #❓・help
Nuxt server API on subdomain
I’m trying to create a fullstack app with Nuxt in a single repo so yeah would prefer to keep server and client together.
9 replies
NNuxt
Created by Titan on 2/29/2024 in #❓・help
Nuxt server API on subdomain
9 replies
NNuxt
Created by Titan on 2/29/2024 in #❓・help
Nuxt server API on subdomain
Basically capacitor won’t let you call the universal domain /api path as it routes all root domain queries to itself (the native app)
9 replies