#How to programitically get the baseURL that nuxt is running on?
19 messages · Page 1 of 1 (latest)
Does that module run on the client only? Otherwise I think this is going to be pretty hard. Maybe you have to define an option for the module users to put in the baseUrl in the config.
Does this also work in prod?
I thought the question was about dev. "ie in development if someone runs" . . .
on prod I guess you could check env vars.
Yeah, my bad! Seems like it's only about dev.
my apologies dev was the orginal issue but i would need if for prod as well
in script setup how do you get the nuxt variable?
just knowing some options can be enough for me to test, i will try the devserver url for the server side and for the client side i can probably just use some sort of browser code for it