make dot env file on build
Gitea/subman-nextjs/pipeline/head This commit looks good
Details
Gitea/subman-nextjs/pipeline/head This commit looks good
Details
This commit is contained in:
parent
885f5cd56c
commit
e32df99446
|
@ -7,6 +7,8 @@ agent any
|
||||||
stages{
|
stages{
|
||||||
stage('build'){
|
stage('build'){
|
||||||
steps{
|
steps{
|
||||||
|
sh 'echo "JWT_SECRET=${JWT_SECRET}" | cat >> .env'
|
||||||
|
sh 'echo "DATABASE_URL=${DATABASE_URL}" | cat >> .env'
|
||||||
sh 'npm install'
|
sh 'npm install'
|
||||||
sh 'npm run build'
|
sh 'npm run build'
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,6 @@ import prisma from 'app/lib/db';
|
||||||
import { jwtVerify, JWTPayload, decodeJwt, SignJWT } from 'jose';
|
import { jwtVerify, JWTPayload, decodeJwt, SignJWT } from 'jose';
|
||||||
import { cookies } from 'next/headers';
|
import { cookies } from 'next/headers';
|
||||||
import { loginSchema, LoginSchema } from 'app/login/schema';
|
import { loginSchema, LoginSchema } from 'app/login/schema';
|
||||||
import { loadEnvConfig } from '@next/env'
|
|
||||||
|
|
||||||
const projectDir = process.cwd()
|
|
||||||
loadEnvConfig(projectDir)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue