fix: remove marketing (#1562)
This commit is contained in:
@@ -10,7 +10,3 @@ console.log('Copying .well-known/ contents to apps');
|
||||
fs.cpSync(wellKnownPath, path.join(__dirname, '../apps/web/public/.well-known'), {
|
||||
recursive: true,
|
||||
});
|
||||
|
||||
fs.cpSync(wellKnownPath, path.join(__dirname, '../apps/marketing/public/.well-known'), {
|
||||
recursive: true,
|
||||
});
|
||||
|
||||
@@ -34,10 +34,6 @@ const remapVercelEnv = () => {
|
||||
process.env.NEXTAUTH_URL = `https://${process.env.VERCEL_URL}`;
|
||||
process.env.NEXT_PUBLIC_WEBAPP_URL = `https://${process.env.VERCEL_URL}`;
|
||||
}
|
||||
|
||||
if (process.env.VERCEL_ENV !== 'production' && process.env.DEPLOYMENT_TARGET === 'marketing') {
|
||||
process.env.NEXT_PUBLIC_MARKETING_URL = `https://${process.env.VERCEL_URL}`;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -37,24 +37,6 @@ function remap_webapp_env() {
|
||||
fi
|
||||
}
|
||||
|
||||
function build_marketing() {
|
||||
log "Building marketing for $VERCEL_ENV"
|
||||
|
||||
remap_marketing_env
|
||||
remap_database_integration
|
||||
|
||||
npm run prisma:generate --workspace=@documenso/prisma
|
||||
npm run build -- --filter @documenso/marketing
|
||||
}
|
||||
|
||||
function remap_marketing_env() {
|
||||
if [[ "$VERCEL_ENV" != "production" ]]; then
|
||||
log "Remapping marketing environment variables for $VERCEL_ENV"
|
||||
|
||||
export NEXT_PUBLIC_MARKETING_URL="https://$VERCEL_URL"
|
||||
fi
|
||||
}
|
||||
|
||||
function remap_database_integration() {
|
||||
log "Remapping Supabase integration for $VERCEL_ENV"
|
||||
|
||||
@@ -94,12 +76,9 @@ case "$DEPLOYMENT_TARGET" in
|
||||
"webapp")
|
||||
build_webapp
|
||||
;;
|
||||
"marketing")
|
||||
build_marketing
|
||||
;;
|
||||
*)
|
||||
log "ERROR - Missing or invalid DEPLOYMENT_TARGET environment variable."
|
||||
log "ERROR - DEPLOYMENT_TARGET must be either 'webapp' or 'marketing'."
|
||||
log "ERROR - DEPLOYMENT_TARGET must be 'webapp'."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user