2022-08-29 05:20:54 +02:00
|
|
|
import { ok, methodNotAllowed } from 'next-basics';
|
2022-08-02 08:04:47 +02:00
|
|
|
|
|
|
|
export default async (req, res) => {
|
|
|
|
if (req.method === 'GET') {
|
|
|
|
return ok(res, {
|
|
|
|
basePath: process.env.BASE_PATH || '',
|
|
|
|
trackerScriptName: process.env.TRACKER_SCRIPT_NAME,
|
|
|
|
updatesDisabled: !!process.env.DISABLE_UPDATES,
|
|
|
|
telemetryDisabled: !!process.env.DISABLE_TELEMETRY,
|
2022-10-28 01:42:57 +02:00
|
|
|
loginDisabled: !!process.env.DISABLE_LOGIN,
|
|
|
|
adminDisabled: !!process.env.DISABLE_ADMIN,
|
|
|
|
uiDisabled: !!process.env.DISABLE_UI,
|
2022-08-02 08:04:47 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
return methodNotAllowed(res);
|
|
|
|
};
|