Feat/remove netlify (#5)
* feat: remove netlify function * fix: update `.gitignore`
This commit is contained in:
parent
9f8b2c1402
commit
00852c059a
2 changed files with 0 additions and 20 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -10,6 +10,3 @@ src/_includes/scripts
|
||||||
|
|
||||||
# secret data
|
# secret data
|
||||||
.env
|
.env
|
||||||
|
|
||||||
# Local Netlify folder
|
|
||||||
.netlify
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
const rebuildSite = async (triggerTitle) => {
|
|
||||||
const url = new URL(process.env.NETLIFY_REBUILD_HOOK);
|
|
||||||
|
|
||||||
url.searchParams.append("trigger_title", triggerTitle);
|
|
||||||
|
|
||||||
return await fetch(url.toString(), {
|
|
||||||
method: "POST",
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
export default async () => {
|
|
||||||
await rebuildSite("Refreshing data");
|
|
||||||
};
|
|
||||||
|
|
||||||
export const config = {
|
|
||||||
schedule: "0 */6 * * *",
|
|
||||||
};
|
|
Loading…
Add table
Add a link
Reference in a new issue