Merge branch 'master' of github.com:mcndt/obsidian-note-sharing

This commit is contained in:
Maxime Cannoodt 2022-06-30 21:39:54 +02:00
commit f0d11b9cdb
2 changed files with 10 additions and 11 deletions

View File

@ -11,16 +11,13 @@ const prisma = new PrismaClient();
const app: Express = express();
app.use(express.json());
app.use(helmet());
// Allow CORS in dev mode.
if (process.env.ENVIRONMENT == "dev") {
app.use(
cors({
origin: "*",
})
);
}
app.use(
helmet({
crossOriginResourcePolicy: {
policy: process.env.ENVIRONMENT == "dev" ? "cross-origin" : "same-origin",
},
})
);
// Apply rate limiting
const postLimiter = rateLimit({

View File

@ -5,7 +5,9 @@
>
<div id="navbar-left" class="flex gap-6">
<a href="/" class="self-center h-full pb-0.5">
<span id="name" class="self-center font-bold text-lg dark:text-white">Noteshare.space</span>
<span id="name" class="self-center font-bold text-lg dark:text-white"
>{import.meta.env.VITE_BRANDING}</span
>
</a>
<ul class="flex gap-2 content-center">
<slot name="left" />