Skip to content

Instantly share code, notes, and snippets.

View ViljarVoidula's full-sized avatar

ViljarVoidula

View GitHub Profile
import React, { useState, useEffect } from "react"
// We will import react-markdown and remark-gfm dynamically on the client
// import ReactMarkdown from "https://cdn.skypack.dev/react-markdown@8?min" // REMOVED STATIC IMPORT
// import remarkGfm from "https://esm.sh/remark-gfm@3?conditions=worker&bundle" // REMOVED STATIC IMPORT
import { addPropertyControls, ControlType } from "framer"
// Store your main styles in a constant
const MARKDOWN_STYLES = `
.markdown-container {
width: 100%;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 900s;
proxy_connect_timeout 300s;
# mitigate HttpProxy attack
proxy_set_header Proxy "";