import { PrismaClient } from '@prisma/client'
const prismaClientSingleton = () => { return new PrismaClient() }
declare const globalThis: { prismaGlobal: ReturnType; } & typeof global;
# Generat Openssl key and cert. | |
openssl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -out cert.pem -days 365 |
import { PrismaClient } from '@prisma/client'
const prismaClientSingleton = () => { return new PrismaClient() }
declare const globalThis: { prismaGlobal: ReturnType; } & typeof global;
User-agent: * | |
# Next.JS Crawl Budget Performance Updates | |
# Block files ending in .json, _buildManifest.js, _middlewareManifest.js, _ssgManifest.js, and any other JS files | |
Disallow: /*.json$ | |
Disallow: /*_buildManifest.js$ | |
Disallow: /*_middlewareManifest.js$ | |
Disallow: /*_ssgManifest.js$ | |
Disallow: /*.js$ | |
Disallow: /api/ | |
Disallow: /_next/ |
alias docker-build='function \_docker_deploy() { \
image_name=$(basename "$PWD"); \
short_hash=$(git rev-parse --short HEAD); \
full_tag="registry.digitalocean.com/shootingsupplies/${image_name}:${short_hash}"; \
docker compose build --no-cache; \
docker tag "${image_name}" "$full_tag"; \
docker push "$full_tag"; \