πͺππ©π’
NNuxt
β’Created by πͺππ©π’ on 2/5/2025 in #βγ»help
Server read data from public
Hello,
In server/api I have data script, that reads file from public, and returns json
When I build and run it locally, everything is fine; but when I try to deploy it with netlify I get empty response from api/data.
Most likely it is due to current working directory (
process.cwd()
) being outside of dist folder, however I have no idea, how else I can load that data, as relative path to public
differs between dev and build.12 replies
NNuxt
β’Created by πͺππ©π’ on 2/19/2024 in #βγ»help
Idk how to hydrate / execute client side only
When I have this code:
I get this console.warn message:
And background image is dark, even though system theme, and subsequently the page, is light.
12 replies