mirror of
https://github.com/cupcakearmy/fantus.git
synced 2024-12-22 16:26:25 +00:00
test env
This commit is contained in:
parent
ddcecc8d24
commit
a570d155ba
15
pages/api/env.tsx
Normal file
15
pages/api/env.tsx
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { NextApiRequest, NextApiResponse } from 'next'
|
||||||
|
import getConfig from 'next/config'
|
||||||
|
|
||||||
|
const config = getConfig().serverRuntimeConfig
|
||||||
|
|
||||||
|
|
||||||
|
export default async (req: NextApiRequest, res: NextApiResponse) => {
|
||||||
|
try {
|
||||||
|
res.send(JSON.stringify(config))
|
||||||
|
res.status(200).end()
|
||||||
|
|
||||||
|
} catch {
|
||||||
|
res.status(400).end()
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user