Skip to content

Instantly share code, notes, and snippets.

View chmielulu's full-sized avatar
🇵🇱
Working

Jacob chmielulu

🇵🇱
Working
View GitHub Profile
@r1tsuu
r1tsuu / next.config.mjs
Last active July 1, 2024 00:34
Patch next with PR adds experimental serverOnlyDependencies property https://github.com/vercel/next.js/pull/65415
import { withPayload } from '@payloadcms/next/withPayload';
import { resolve } from 'path';
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverOnlyDependencies: [resolve(import.meta.dirname, 'payload.config.proxy.ts')],
},
};
@iPublicis
iPublicis / .htaccess
Last active November 4, 2024 00:57
NODE.JS app in Apache - force www. and https: sample .htaccess, skip images or other files desired - partialy based on vielhuber/.htaccess
#########################
#
# NODE.JS app running in Apache
# sample .htaccess - partialy based on vielhuber/.htaccess
# Read also https://gist.github.com/vielhuber/f2c6bdd1ed9024023fe4
# Also rules to enforce www. prefix and https: SSL access and avoid extra processing for any file defined.
#
# This file must be on the dir where Apache expects to find the website
# The Node App can be anywhere else but must be accessible as explained below.
#