Tomy K.(Томас)
AAlokai
•Created by Tomy K.(Томас) on 2/12/2024 in #🙋|general-help
How to Deploy Vue Project in Nuxt to my Ubuntu Server
Thanks @rohrig
i fixed my issue
By oss development guide
before deploying to local server only for testing or production we should have valid SSL certificate if not there is CORS error..
1ST i used pm2 to start my service and acquire domain name ssl after that i follow the documentation and its working Thanks!
15 replies
AAlokai
•Created by Tomy K.(Томас) on 2/12/2024 in #🙋|general-help
How to Deploy Vue Project in Nuxt to my Ubuntu Server
here is the middleware configuration :
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
module.exports = {
integrations: {
vendure: {
location: '@vue-storefront/vendure-api/server',
configuration: {
api: {
uri: process.env.GRAPHQL_API,
// to be used later with authentication
tokenMethod: process.env.TOKEN_METHOD,
},
},
},
},
};
15 replies
AAlokai
•Created by Tomy K.(Томас) on 2/12/2024 in #🙋|general-help
How to Deploy Vue Project in Nuxt to my Ubuntu Server
i need to test in my local server without additional configuration
15 replies
AAlokai
•Created by Tomy K.(Томас) on 2/12/2024 in #🙋|general-help
How to Deploy Vue Project in Nuxt to my Ubuntu Server
15 replies
AAlokai
•Created by Tomy K.(Томас) on 2/12/2024 in #🙋|general-help
How to Deploy Vue Project in Nuxt to my Ubuntu Server
15 replies
AAlokai
•Created by Tomy K.(Томас) on 2/12/2024 in #🙋|general-help
How to Deploy Vue Project in Nuxt to my Ubuntu Server
i need to run in port number 3001 and the backend run in port number 3000
it think discord remove from my configuration
port: process.env.PORT 3001
GRAPHQL_API:process.env.GRAPHQL_API || 'http://localhost:3000/shop-api'
15 replies
AAlokai
•Created by Tomy K.(Томас) on 2/12/2024 in #🙋|general-help
How to Deploy Vue Project in Nuxt to my Ubuntu Server
Thanks @rohrig for your response am checking the guide before that
in me local pc am working in vuestorefront project when i run with
yarn dev -> it gave me the http://10.10.20.55:3001
but when i browse its not working but
when i use http://localhost:3001 it working fine instead of the ip address
here is my nuxt configuration :
import webpack from 'webpack';
import { getRoutes } from './routes';
import theme from './themeConfig';
export default {
server: {
port: process.env.PORT 3001,
host: '0.0.0.0',
// protocol:'https'
},
env: {
GRAPHQL_API: process.env.GRAPHQL_API 'http://localhost:3000/shop-api',
SECRET_KEY: process.env.SECRET_KEY,
ACCESS_KEY: process.env.ACCESS_KEY,
PROFILE_ID: process.env.PROFILE_ID,
},
15 replies