∂Max
∂Max
NNuxt
Created by abd on 8/6/2024 in #❓・help
How to make a page height = the viewport height
Hey, you can use h-screen
12 replies
NNuxt
Created by ∂Max on 8/6/2024 in #❓・help
Nitro compressPublicAssets not working in docker image
Also, it works builds normally outside of docker
4 replies
NNuxt
Created by ∂Max on 8/6/2024 in #❓・help
Nitro compressPublicAssets not working in docker image
I don't think this is normal at all, should I open an issue somewhere?
4 replies
NNuxt
Created by ∂Max on 8/6/2024 in #❓・help
Nitro compressPublicAssets not working in docker image
Docker logs:
...
#16 69.84 ℹ ✓ built in 54.59s
#16 69.86 ✔ Client built in 54621ms
#16 69.99 ℹ Building server...
#16 70.05 ℹ vite v5.3.5 building SSR bundle for production...
#16 70.18 ℹ transforming...
#16 70.20 ℹ ✓ 1 modules transformed.
#16 70.25 ℹ rendering chunks...
#16 70.27 ℹ .nuxt/dist/server/styles.mjs 0.07 kB
#16 70.27 ℹ .nuxt/dist/server/server.mjs 0.10 kB │ map: 0.22 kB
#16 70.27 ℹ ✓ built in 204ms
#16 70.30 ✔ Server built in 312ms
#16 70.35 [nitro] ℹ Initializing prerenderer
#16 73.21 [nitro] ℹ Prerendering 1 routes
#16 73.94 [nitro] ├─ /api/_content/cache.1722963454382.json (719ms)
#16 73.94 [nitro] ℹ Prerendered 1 routes in 2.9 seconds
#16 DONE 74.4s
...
#16 69.84 ℹ ✓ built in 54.59s
#16 69.86 ✔ Client built in 54621ms
#16 69.99 ℹ Building server...
#16 70.05 ℹ vite v5.3.5 building SSR bundle for production...
#16 70.18 ℹ transforming...
#16 70.20 ℹ ✓ 1 modules transformed.
#16 70.25 ℹ rendering chunks...
#16 70.27 ℹ .nuxt/dist/server/styles.mjs 0.07 kB
#16 70.27 ℹ .nuxt/dist/server/server.mjs 0.10 kB │ map: 0.22 kB
#16 70.27 ℹ ✓ built in 204ms
#16 70.30 ✔ Server built in 312ms
#16 70.35 [nitro] ℹ Initializing prerenderer
#16 73.21 [nitro] ℹ Prerendering 1 routes
#16 73.94 [nitro] ├─ /api/_content/cache.1722963454382.json (719ms)
#16 73.94 [nitro] ℹ Prerendered 1 routes in 2.9 seconds
#16 DONE 74.4s
4 replies
NNuxt
Created by ∂Max on 6/24/2024 in #❓・help
Support of the new URL(..., import.meta.url) syntax?
Thanks! I’ll take a look tomorrow
6 replies
NNuxt
Created by ∂Max on 7/18/2024 in #❓・help
get module options
I have some property defined in my module config that I want to access in my vue code
2 replies
NNuxt
Created by ∂Max on 6/24/2024 in #❓・help
Support of the new URL(..., import.meta.url) syntax?
It works as intended without nuxt, but with nuxt it doesn't have any effect
6 replies
NNuxt
Created by ∂Max on 6/24/2024 in #❓・help
Support of the new URL(..., import.meta.url) syntax?
import importMetaUrlPlugin from '@codingame/esbuild-import-meta-url-plugin'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
ssr: false,
vite: {
optimizeDeps: {
esbuildOptions: {
plugins: [importMetaUrlPlugin]
}
}
}
})
import importMetaUrlPlugin from '@codingame/esbuild-import-meta-url-plugin'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
ssr: false,
vite: {
optimizeDeps: {
esbuildOptions: {
plugins: [importMetaUrlPlugin]
}
}
}
})
6 replies
NNuxt
Created by ∂Max on 6/24/2024 in #❓・help
Support of the new URL(..., import.meta.url) syntax?
I tried using an esbuild plugin but sadly it looks like it didn't work with nuxt.js (with react and vite it does)
6 replies
NNuxt
Created by ∂Max on 6/11/2024 in #❓・help
Nuxt content: attach data to md file
Also, can I simply create another file like code.java and query it?
2 replies
NNuxt
Created by ∂Max on 3/7/2023 in #❓・help
error caught during app initialization H3Error: Page not found: /sw.js
Do you use a node version >= 19.x.x?
5 replies
NNuxt
Created by ∂Max on 3/7/2023 in #❓・help
error caught during app initialization H3Error: Page not found: /sw.js
Sadly, I did not manage to solve it…
5 replies