Fix sharp in container, add admin downloads and anchor mark
- ship libvips with the runtime image so POST /api/v1/media stops failing - admin downloads openapi.json and the style guide via session, no token - copy rows for both API addresses - anchor mark in the wordmark and a favicon
This commit is contained in:
@@ -1,11 +1,22 @@
|
||||
import type { NextConfig } from 'next'
|
||||
import createNextIntlPlugin from 'next-intl/plugin'
|
||||
|
||||
const sharpNative = [
|
||||
'./node_modules/.pnpm/@img+sharp-libvips-*/**',
|
||||
'./node_modules/.pnpm/@img+sharp-linux*/**',
|
||||
'./node_modules/@img/**',
|
||||
]
|
||||
|
||||
const config: NextConfig = {
|
||||
output: 'standalone',
|
||||
outputFileTracingIncludes: {
|
||||
'/api/v1/style-guide': ['./docs/style-guide.md'],
|
||||
'/': ['./node_modules/drizzle-orm/**'],
|
||||
'/api/v1/media': sharpNative,
|
||||
'/admin/media': sharpNative,
|
||||
'/admin/media/[slug]': sharpNative,
|
||||
'/admin/entries/[id]': sharpNative,
|
||||
'/admin/entries/new': sharpNative,
|
||||
},
|
||||
typedRoutes: true,
|
||||
experimental: {
|
||||
|
||||
Reference in New Issue
Block a user