fustuk.
fustuk.
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
nvm guys it was just wrong payload sorry for the inconvenience
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
main.wasp
server: {
middlewareConfigFn: import { serverMiddlewareFn } from "@src/serverSetup"
},
main.wasp
server: {
middlewareConfigFn: import { serverMiddlewareFn } from "@src/serverSetup"
},
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
export const serverMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => {
middlewareConfig.set('cors', cors({ origin: [process.env.WASP_WEB_CLIENT_URL, 'http://localhost:3000'] }))
return middlewareConfig
}
export const serverMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => {
middlewareConfig.set('cors', cors({ origin: [process.env.WASP_WEB_CLIENT_URL, 'http://localhost:3000'] }))
return middlewareConfig
}
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
No description
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
gotcha, thanks again!
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
setupFn: import setup from "@src/serverSetup", @Vinny (@Wasp) sorry but what is that suppose to be
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
yeah I didnt saw the location at first mb
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
hmm its in the build dir app/.wasp/out/sdk/wasp/dist/server/config.js I guess I cant edit that, nvm will use the approach you suggested thank you
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
which one, would this work getProductionConfig or do I have to modify serverMiddlewareFn Im fine with allowing all endpoints
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
in this function ? getProductionConfig
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
but where do I set it
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
No description
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
export const apiMiddleware: MiddlewareConfigFn = (middlewareConfig) => { const customMiddleware: express.RequestHandler = (_req, _res, next) => { next() } middlewareConfig.set('custom.middleware', customMiddleware) return middlewareConfig } This is my middleware can I add it here somehow? @kapa.ai
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
@kapa.ai
37 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
@kapa.ai
37 replies
WWasp-lang
Created by fustuk. on 9/11/2024 in #đŸ™‹questions
Zero length key (google auth) ??
yes, WASP_SERVER_URL was pointing to another domain which was throwing CORS
7 replies
WWasp-lang
Created by fustuk. on 9/11/2024 in #đŸ™‹questions
Zero length key (google auth) ??
fixed in, changed the domain without changing env values mb
7 replies
WWasp-lang
Created by fustuk. on 9/9/2024 in #đŸ™‹questions
Are there any future plans of implementing something like Clerk's organizations?
alright thanks guys!
8 replies
WWasp-lang
Created by fustuk. on 9/9/2024 in #đŸ™‹questions
Are there any future plans of implementing something like Clerk's organizations?
For example could be anything to do with corporate software, anything that an employer would pay and manage subscribtions of the team there etc.Any kind of internal content sharing can be made easier with this, ofcourse it is not hard to do the base for this, but I was just curious if you guys have future plans for it.
I already seen one other similar question regarding this, also the guy that bought my last saas was asking bout this feature.
8 replies
WWasp-lang
Created by fustuk. on 9/2/2024 in #đŸ™‹questions
SendGrid 403 Error
omg okay I missed the fromField... thanks alot again
25 replies