move tailwind.css to templates directory

This commit is contained in:
m5r 2021-10-30 13:04:54 +02:00
parent 514dae3ebb
commit 8e860a1ea3
3 changed files with 6 additions and 3 deletions

View File

@ -1,8 +1,8 @@
import { resolver, SecurePassword } from "blitz";
import db, { GlobalRole, MembershipRole } from "../../../db";
import db, { GlobalRole, MembershipRole } from "db";
import { Signup } from "../validations";
import { computeEncryptionKey } from "../../../db/_encryption";
import { computeEncryptionKey } from "db/_encryption";
export default resolver.pipe(resolver.zod(Signup), async ({ email, password, fullName }, ctx) => {
const hashedPassword = await SecurePassword.hash(password.trim());
@ -33,5 +33,8 @@ export default resolver.pipe(resolver.zod(Signup), async ({ email, password, ful
orgId: user.memberships[0]!.organizationId,
shouldShowWelcomeMessage: true,
});
// TODO: send welcome email
return user;
});

View File

@ -21,7 +21,7 @@ function getMaizzleParams(templateName: string, locals: Record<string, string>)
const template = fs
.readFileSync(path.resolve(process.cwd(), "./mailers/templates", `${templateName}.html`))
.toString();
const tailwindCss = fs.readFileSync(path.resolve(process.cwd(), "./mailers/tailwind.css")).toString();
const tailwindCss = fs.readFileSync(path.resolve(process.cwd(), "./mailers/templates/tailwind.css")).toString();
const options = {
tailwind: {