mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 01:02:04 +00:00
Log hostname
This commit is contained in:
parent
f87746c628
commit
5c15b93c48
@ -19,6 +19,7 @@ export default async function combinedMiddleware(request) {
|
||||
const ip = request.ip ?? '127.0.0.1';
|
||||
const hostname = request.nextUrl.hostname;
|
||||
const referer = request.headers.get('referer') || '';
|
||||
console.log("hostname", hostname);
|
||||
|
||||
// Bypass rate limiting and referer check for the deployment IP
|
||||
if (hostname === FRONTEND_HOSTNAME || hostname === FRONTEND_STAGING_HOSTNAME) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { getAllContentIds } from '../../../db/models/genericModels';
|
||||
import { getAllContentIds } from '@/db/models/genericModels';
|
||||
|
||||
export default async function handler(req, res) {
|
||||
if (req.method === 'GET') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user