Update last minute things before rebuilding
This commit is contained in:
49
.dockerignore
Normal file
49
.dockerignore
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
# Dependencies - MUST exclude these
|
||||||
|
node_modules
|
||||||
|
**/node_modules
|
||||||
|
.pnp
|
||||||
|
.pnp.js
|
||||||
|
|
||||||
|
# Turbo
|
||||||
|
.turbo
|
||||||
|
**/.turbo
|
||||||
|
|
||||||
|
# Next.js build artifacts
|
||||||
|
.next
|
||||||
|
**/.next
|
||||||
|
out
|
||||||
|
**/out
|
||||||
|
|
||||||
|
# Development
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
*.log
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
|
||||||
|
# Tests
|
||||||
|
**/__tests__
|
||||||
|
**/*.test.ts
|
||||||
|
**/*.test.tsx
|
||||||
|
**/*.spec.ts
|
||||||
|
|
||||||
|
# Build artifacts
|
||||||
|
dist
|
||||||
|
**/dist
|
||||||
|
build
|
||||||
|
**/build
|
||||||
|
|
||||||
|
# Convex local
|
||||||
|
packages/backend/.convex
|
||||||
|
|
||||||
|
# OS
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
docker
|
||||||
|
Dockerfile
|
||||||
|
.dockerignore
|
||||||
@@ -35,7 +35,7 @@ const sentryConfig = {
|
|||||||
sentryUrl: env.NEXT_PUBLIC_SENTRY_URL,
|
sentryUrl: env.NEXT_PUBLIC_SENTRY_URL,
|
||||||
authToken: env.SENTRY_AUTH_TOKEN,
|
authToken: env.SENTRY_AUTH_TOKEN,
|
||||||
// Only print logs for uploading source maps in CI
|
// Only print logs for uploading source maps in CI
|
||||||
silent: !env.CI,
|
silent: env.CI,
|
||||||
// For all available options, see:
|
// For all available options, see:
|
||||||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
||||||
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
import { createEnv } from '@t3-oss/env-nextjs';
|
import { createEnv } from '@t3-oss/env-nextjs';
|
||||||
import { z } from 'zod/v4';
|
import { z } from 'zod/v4';
|
||||||
|
import { process } from 'zod/v4/core';
|
||||||
|
|
||||||
export const env = createEnv({
|
export const env = createEnv({
|
||||||
shared: {
|
shared: {
|
||||||
NODE_ENV: z
|
NODE_ENV: z
|
||||||
.enum(['development', 'production', 'test'])
|
.enum(['development', 'production', 'test'])
|
||||||
.default('development'),
|
.default('development'),
|
||||||
|
CI: z.boolean().default(false),
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Specify your server-side environment variables schema here.
|
* Specify your server-side environment variables schema here.
|
||||||
@@ -34,7 +36,7 @@ export const env = createEnv({
|
|||||||
experimental__runtimeEnv: {
|
experimental__runtimeEnv: {
|
||||||
NODE_ENV: process.env.NODE_ENV,
|
NODE_ENV: process.env.NODE_ENV,
|
||||||
CI: process.env.CI,
|
CI: process.env.CI,
|
||||||
SITE_URL: process.env.SITE_URL,
|
SENTRY_AUTH_TOKEN: process.env.SENTRY_AUTH_TOKEN,
|
||||||
NEXT_PUBLIC_SITE_URL: process.env.NEXT_PUBLIC_SITE_URL,
|
NEXT_PUBLIC_SITE_URL: process.env.NEXT_PUBLIC_SITE_URL,
|
||||||
NEXT_PUBLIC_CONVEX_URL: process.env.NEXT_PUBLIC_CONVEX_URL,
|
NEXT_PUBLIC_CONVEX_URL: process.env.NEXT_PUBLIC_CONVEX_URL,
|
||||||
NEXT_PUBLIC_PLAUSIBLE_URL: process.env.NEXT_PUBLIC_PLAUSIBLE_URL,
|
NEXT_PUBLIC_PLAUSIBLE_URL: process.env.NEXT_PUBLIC_PLAUSIBLE_URL,
|
||||||
|
|||||||
@@ -18,8 +18,9 @@ out
|
|||||||
.git
|
.git
|
||||||
.gitignore
|
.gitignore
|
||||||
*.log
|
*.log
|
||||||
.env.local
|
.env
|
||||||
.env*.local
|
.env.*
|
||||||
|
!.env.example
|
||||||
.vscode
|
.vscode
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,9 @@
|
|||||||
# Next Envrionment Variables
|
# Next Envrionment Variables
|
||||||
NODE_ENV=production
|
|
||||||
NETWORK=nginx-bridge
|
NETWORK=nginx-bridge
|
||||||
NEXT_CONTAINER_NAME=next-app
|
NEXT_CONTAINER_NAME=next-app
|
||||||
NEXT_DOMAIN_NAME=gbrown.org
|
NEXT_DOMAIN_NAME=gbrown.org
|
||||||
# Port is disabled by default as suggested
|
NEXT_PORT=3000
|
||||||
# config is to have reverse proxy on the same
|
NODE_ENV=production
|
||||||
# network so you can just forward to the
|
|
||||||
# port on the internal network.
|
|
||||||
# NEXT_PORT=3000
|
|
||||||
SENTRY_AUTH_TOKEN=
|
SENTRY_AUTH_TOKEN=
|
||||||
NEXT_PUBLIC_SITE_URL=https://gbrown.org
|
NEXT_PUBLIC_SITE_URL=https://gbrown.org
|
||||||
NEXT_PUBLIC_CONVEX_URL=https://api.convex.gbrown.org
|
NEXT_PUBLIC_CONVEX_URL=https://api.convex.gbrown.org
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ services:
|
|||||||
dockerfile: ./docker/Dockerfile
|
dockerfile: ./docker/Dockerfile
|
||||||
image: ${NEXT_CONTAINER_NAME}:alpine
|
image: ${NEXT_CONTAINER_NAME}:alpine
|
||||||
container_name: ${NEXT_CONTAINER_NAME}
|
container_name: ${NEXT_CONTAINER_NAME}
|
||||||
env_file: [.env]
|
|
||||||
environment:
|
environment:
|
||||||
|
- NODE_ENV
|
||||||
- SENTRY_AUTH_TOKEN
|
- SENTRY_AUTH_TOKEN
|
||||||
- NEXT_PUBLIC_SITE_URL
|
- NEXT_PUBLIC_SITE_URL
|
||||||
- NEXT_PUBLIC_CONVEX_URL
|
- NEXT_PUBLIC_CONVEX_URL
|
||||||
@@ -38,7 +38,6 @@ services:
|
|||||||
#ports: ['${BACKEND_PORT:-3210}:3210','${SITE_PROXY_PORT:-3211}:3211']
|
#ports: ['${BACKEND_PORT:-3210}:3210','${SITE_PROXY_PORT:-3211}:3211']
|
||||||
volumes: [./data:/convex/data]
|
volumes: [./data:/convex/data]
|
||||||
labels: ['com.centurylinklabs.watchtower.enable=true']
|
labels: ['com.centurylinklabs.watchtower.enable=true']
|
||||||
env_file: ['.env']
|
|
||||||
environment:
|
environment:
|
||||||
- INSTANCE_NAME
|
- INSTANCE_NAME
|
||||||
- INSTANCE_SECRET
|
- INSTANCE_SECRET
|
||||||
@@ -67,7 +66,6 @@ services:
|
|||||||
#user: 1000:1000
|
#user: 1000:1000
|
||||||
#ports: ['${DASHBOARD_PORT:-6791}:6791']
|
#ports: ['${DASHBOARD_PORT:-6791}:6791']
|
||||||
labels: ['com.centurylinklabs.watchtower.enable=true']
|
labels: ['com.centurylinklabs.watchtower.enable=true']
|
||||||
env_file: [.env]
|
|
||||||
environment:
|
environment:
|
||||||
- NEXT_PUBLIC_DEPLOYMENT_URL=${NEXT_PUBLIC_DEPLOYMENT_URL:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${PORT:-3210}}
|
- NEXT_PUBLIC_DEPLOYMENT_URL=${NEXT_PUBLIC_DEPLOYMENT_URL:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${PORT:-3210}}
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user