mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
background images, document title
This commit is contained in:
8
src/pages/api/revalidate.js
Normal file
8
src/pages/api/revalidate.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default async function handler(req, res) {
|
||||
try {
|
||||
await res.revalidate("/");
|
||||
return res.json({ revalidated: true });
|
||||
} catch (err) {
|
||||
return res.status(500).send("Error revalidating");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user