Siguientes variables de entorno JS
// .env.local
DB_HOST=localhost
DB_USER=myuser
DB_PASS=mypassword
// pages/index.js
export async function getStaticProps() {
const db = await myDB.connect({
host: process.env.DB_HOST,
username: process.env.DB_USER,
password: process.env.DB_PASS,
})
// ...
}
S3NS4