Clean up type errors and get docker build into better state
This commit is contained in:
@ -5,6 +5,7 @@ LOG_LEVEL=info
|
|||||||
APP_KEY=
|
APP_KEY=
|
||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
SESSION_DRIVER=cookie
|
SESSION_DRIVER=cookie
|
||||||
|
PG_PORT=5432
|
||||||
PG_HOST=localhost
|
PG_HOST=localhost
|
||||||
PG_PASSWORD=password
|
PG_PASSWORD=password
|
||||||
SENTRY_TOKEN=
|
SENTRY_TOKEN=
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -6,8 +6,8 @@ tmp
|
|||||||
# Secrets
|
# Secrets
|
||||||
.env
|
.env
|
||||||
.env.local
|
.env.local
|
||||||
.env.production.local
|
.env.production
|
||||||
.env.development.local
|
.env.develop
|
||||||
|
|
||||||
# Frontend assets compiled code
|
# Frontend assets compiled code
|
||||||
public/assets
|
public/assets
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM node:20.12.2-alpine3.18 AS base
|
FROM node:20.12.2-alpine3.18 AS base
|
||||||
|
|
||||||
|
|
||||||
# All deps stage
|
# All deps stage
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD package.json package-lock.json ./
|
ADD package.json package-lock.json ./
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
FROM node:22 AS dev-deps
|
FROM node:22 AS dev-deps
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -24,7 +24,7 @@ FROM base AS build
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules /app/node_modules
|
COPY --from=deps /app/node_modules /app/node_modules
|
||||||
ADD . .
|
ADD . .
|
||||||
RUN node ace build --ignore-ts-errors
|
RUN node ace build
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM base
|
FROM base
|
||||||
|
@ -135,7 +135,7 @@ function parseSentryLinkHeader(header:string): SentryPagination {
|
|||||||
}, {} as Record<string, any>)
|
}, {} as Record<string, any>)
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildPaginationLinks(meta) {
|
function buildPaginationLinks(meta: { previousPageUrl: string, lastPage: number; currentPage: number; nextPageUrl: string}) {
|
||||||
const links = []
|
const links = []
|
||||||
|
|
||||||
// Previous
|
// Previous
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import app from '@adonisjs/core/services/app'
|
|
||||||
import { defineConfig } from '@adonisjs/lucid'
|
import { defineConfig } from '@adonisjs/lucid'
|
||||||
import env from '#start/env'
|
import env from '#start/env'
|
||||||
|
|
||||||
|
@ -27,5 +27,10 @@ export default await Env.create(new URL('../', import.meta.url), {
|
|||||||
|
|
||||||
REDIS_HOST: Env.schema.string({ format: 'host' }),
|
REDIS_HOST: Env.schema.string({ format: 'host' }),
|
||||||
REDIS_PORT: Env.schema.number(),
|
REDIS_PORT: Env.schema.number(),
|
||||||
REDIS_PASSWORD: Env.schema.string.optional()
|
REDIS_PASSWORD: Env.schema.string.optional(),
|
||||||
|
|
||||||
|
PG_PORT: Env.schema.number(),
|
||||||
|
PG_HOST: Env.schema.string(),
|
||||||
|
PG_USER: Env.schema.string(),
|
||||||
|
PG_PASSWORD: Env.schema.string(),
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user