Merge branch 'master' of github.com:mcndt/obsidian-note-sharing
This commit is contained in:
commit
f0d11b9cdb
@ -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({
|
||||
|
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user