This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Double-container Dockerfile for separated build process. | |
| # If you're just copy-pasting this, don't forget a .dockerignore! | |
| # We're starting with the same base image, but we're declaring | |
| # that this block outputs an image called DEPS that we | |
| # won't be deploying - it just installs our npm deps | |
| FROM node:14-alpine AS deps | |
| # If you need libc for any of your deps, uncomment this line: | |
| # RUN apk add --no-cache libc6-compat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Make sure you run this file from the project root | |
| // or use `npm run email` | |
| import nodemailer from "nodemailer"; | |
| import * as dotenv from "dotenv"; | |
| import path from "path"; | |
| dotenv.config({ | |
| // path: path.resolve(path.basename(path.dirname(process.cwd())), ".env"), | |
| }); | |
| console.log( | |
| "Setup email config: ", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useRouter } from "next/router"; | |
| const function getAssetTypeFirstLetterUppercase(){ | |
| const { query } = useRouter(); | |
| // Format first letter to be capitalized | |
| const assetType = query?.type | |
| ? query?.type[0].toUpperCase() + query?.type.slice(1) | |
| : undefined; | |
| } |
OlderNewer