Hi,
if you are using Nuxt framework and your build url is something like
127.0.0.1/project:3000 or any port but you want to access through domain like comedymood.com
Then you are in right place.
Follow this steps.
1. Open package.json file
add this entry.
"config": {
"nuxt": {
"host": "0.0.0.0",
"port": "80"
}
}
2. Open HOST file (file:///C:/Windows/System32/drivers/etc/hosts)
add this entry at bottom.
if you are using Nuxt framework and your build url is something like
127.0.0.1/project:3000 or any port but you want to access through domain like comedymood.com
Then you are in right place.
Follow this steps.
1. Open package.json file
add this entry.
"config": {
"nuxt": {
"host": "0.0.0.0",
"port": "80"
}
}
2. Open HOST file (file:///C:/Windows/System32/drivers/etc/hosts)
add this entry at bottom.
127.0.0.1 comedymood.com
now terminate npm process if running (ctrl+c) and then run again by "npm run dev"
you will get the url like localhost:80
But don't worry.
you open comedymood.com in your favourite browser.
Thanks.
No comments:
Post a Comment