paul_11097
paul_11097
Explore posts from servers
BABetter Auth
Created by paul_11097 on 4/14/2025 in #help
magic link sendMagicLink using astro request is undefined
Hi guys, Iam stuck for a while now. I dont understand when or why the Request is undefined. Email, token and url are getting printed but the request is always empty.
plugins: [
magicLink({
sendMagicLink: async ({ email, token, url }, request) => {
// send email to user
logger.info("sending magic link",` name: `, email, token, url);
logger.debug("request", request);
},
}),
],
plugins: [
magicLink({
sendMagicLink: async ({ email, token, url }, request) => {
// send email to user
logger.info("sending magic link",` name: `, email, token, url);
logger.debug("request", request);
},
}),
],
could this be related to astro ?
6 replies
SSolidJS
Created by paul_11097 on 10/2/2023 in #support
HI guys I have a problem with with ssr on my lib. I use rollup
export default withSolid({
writePackageJson: true,
input: "./src/index.tsx",
targets: ["esm","cjs"],
plugins: [vanillaExtractPlugin(), resolve()],
output: {
dir: "dist",
format: "es",
preserveModules: true,
assetFileNames({name}) {
const path = name?.replace("src/styles", 'assets');
return path;
}
}
});
export default withSolid({
writePackageJson: true,
input: "./src/index.tsx",
targets: ["esm","cjs"],
plugins: [vanillaExtractPlugin(), resolve()],
output: {
dir: "dist",
format: "es",
preserveModules: true,
assetFileNames({name}) {
const path = name?.replace("src/styles", 'assets');
return path;
}
}
});
and this are my exports in package.json
"source": "./dist/source/index.jsx",
"main": "./dist/src/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"solid": "./dist/src/index.js",
"import": "./dist/esm/index.js",
"browser": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"node": "./dist/cjs/index.js"
}
},
"files": [
"dist"
],
"source": "./dist/source/index.jsx",
"main": "./dist/src/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"solid": "./dist/src/index.js",
"import": "./dist/esm/index.js",
"browser": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"node": "./dist/cjs/index.js"
}
},
"files": [
"dist"
],
does any has a clue why how I can fix the vite ssr error vite_ssr_import_0.template is not a function ?
1 replies