Skip to content

Instantly share code, notes, and snippets.

@elfico
elfico / Breadcrumb.tsx
Created September 29, 2024 09:37
Implementing Breadcrumbs in React using React Router v6
import { useEffect, useState } from 'react';
import { Link, matchRoutes, useLocation } from 'react-router-dom';
interface IRoute {
name: string;
path: string;
}
const routes: IRoute[] = [
{
For anyone that is hosting Sendy in Azure App Service for Linux which uses nginx,
What I would advise is to first copy the original nginx file and then edit it based on the config above.
First:
`cp /etc/nginx/sites-available/default /home/site/default`
The above will copy the default file from the `etc/nginx/sites-available` to your deployment folder.
For example, this is what I got:
```
server {