move tailwind.css to templates directory
This commit is contained in:
parent
514dae3ebb
commit
8e860a1ea3
@ -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;
|
||||
});
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user