Skip to content

Instantly share code, notes, and snippets.

import './globals.css';
import { Inter } from 'next/font/google';
import Script from 'next/script';
import Consent from './components/Consent';
const inter = Inter({ subsets: ['latin'] });
export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
import './globals.css';
import { Inter } from 'next/font/google';
import Script from 'next/script';
import { cookies } from 'next/headers';
import Consent from './components/Consent';
const inter = Inter({ subsets: ['latin'] });
export const metadata = {
title: 'Create Next App',
@popeating
popeating / layout.js
Created July 13, 2023 21:21
layout.js
import './globals.css';
import { Inter } from 'next/font/google';
import Script from 'next/script';
const inter = Inter({ subsets: ['latin'] });
export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
};
const secret = "very_secret_key";
const repo = "/var/www/example.com";
const http = require('http');
const crypto = require('crypto');
const exec = require('child_process').exec;
const BUILD_CMD = 'npm install && NODE_ENV=production npm run build';
const PM2_CMD = 'pm2 restart <NODE APP NAME>';
import localFont from 'next/font/local'
// Font files can be colocated inside of `app`
const myFont = localFont({
src: './my-font.woff2',
display: 'swap',
...
})
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
import { Roboto_Condensed, Inter, Ubuntu_Mono } from 'next/font/google';
const roboto_c = Roboto_Condensed({
subsets: ['latin'],
weight: ['400', '700'],
variable: '--font-roboto_c',
});
const ubuntu_m = Ubuntu_Mono({
import { Roboto_Condensed, Inter, Ubuntu_Mono } from 'next/font/google';
import '@/styles/globals.css';
const roboto_c = Roboto_Condensed({
subsets: ['latin'],
weight: ['400', '700'],
});
const ubuntu_m = Ubuntu_Mono({
subsets: ['latin'],
weight: ['400'],