Skip to content

Instantly share code, notes, and snippets.

Next.js Hydration Errors

Script Rendering Warnings

Warning: Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.
Warning: In HTML, <script> cannot be a child of <html>.
@mac-quantum
mac-quantum / setup.sh
Created June 10, 2025 14:04
Development Container Configuration
#!/bin/sh
apk add curl git github-cli nodejs npm vim zsh
curl -fsSl https://raw.githubusercontent.com/maclong9/dots/refs/heads/main/setup.sh | sh
exit
@mac-quantum
mac-quantum / configuration.nix
Created June 5, 2025 22:52
NixOS Configuration
# configuration.nix - Main NixOS system configuration
{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
];
# Boot configuration
boot.loader.systemd-boot.enable = true;
@mac-quantum
mac-quantum / age-gate.tsx
Created May 28, 2025 13:00
Kylie Wines Age Gate
import { IS_BROWSER } from "$fresh/runtime.ts";
import { useSignal } from "@preact/signals";
interface AgeGateProps {
redirectUrl?: string;
siteUrl?: string;
cookieName?: string;
cookieExpireDays?: number;
}