Port application from Next.js to Nuxt
Nuxt is based on Vue.js and I find their building blocks to be much neater compared to the React based Next.js.
This commit is contained in:
parent
8c8b561f1a
commit
250ca9a1ac
45 changed files with 662 additions and 1358 deletions
|
@ -4,7 +4,7 @@ import fs from "node:fs/promises";
|
|||
const vapidKeys = webPush.generateVAPIDKeys();
|
||||
|
||||
const envData = `\
|
||||
VAPID_PUBLIC_KEY=${vapidKeys.publicKey}
|
||||
VAPID_PRIVATE_KEY=${vapidKeys.privateKey}
|
||||
NUXT_PUBLIC_VAPID_PUBLIC_KEY=${vapidKeys.publicKey}
|
||||
NUXT_VAPID_PRIVATE_KEY=${vapidKeys.privateKey}
|
||||
`;
|
||||
await fs.writeFile(".env", envData, "utf-8");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue