Common package for Nuxt3 front-end websites of NLO
The purpose of this package is to provide tooling and runtime utilities to make developing a front-end for NLO websites easier.
Generating ssl certificates
SSL certificates are required to run Nuxt3 locally on SSL. To generate these certificates, use the following command:
npx generate-ssl-certificates.js --dir secrets
This will create two files in the provided secrets
folder. These certificates can be used when starting up Nuxt in development mode, by adding this to the startup command:
Allowing local certificate: export NODE_TLS_REJECT_UNAUTHORIZED=0
(add this before the nuxt dev command)
Tell Nuxt what certificates to use: --https --ssl-cert secrets/server-cert.pem --ssl-key secrets/server-key.pem
(add this after the nuxt dev command)
Full command example:
export NODE_TLS_REJECT_UNAUTHORIZED=0 && nuxt dev --port 3010 --https --ssl-cert secrets/server-cert.pem --ssl-key secrets/server-key.pem