SoyMilkIsOk
SoyMilkIsOk
WWasp-lang
Created by SoyMilkIsOk on 1/26/2024 in #đŸ™‹questions
Integrate Twilio SMS API?
I absolutely will! Should be live here shortly
6 replies
WWasp-lang
Created by SoyMilkIsOk on 1/26/2024 in #đŸ™‹questions
Integrate Twilio SMS API?
Happy to report that I got it working with no real issues! Thanks and if anyone else needs help getting their API working feel free to message me
6 replies
WWasp-lang
Created by SoyMilkIsOk on 1/16/2024 in #đŸ™‹questions
Help with DB build/deploy error.
Thank you very much! I was stuck here (https://wasp-lang.dev/docs/advanced/deployment/cli#flyio) and didnt think to check the manually section
11 replies
WWasp-lang
Created by SoyMilkIsOk on 1/16/2024 in #đŸ™‹questions
Help with DB build/deploy error.
It wouldnt let me deploy after that error unfortunately, using the URL inline did fix the error. How would I go about setting env vars on Fly?
11 replies
WWasp-lang
Created by SoyMilkIsOk on 1/16/2024 in #đŸ™‹questions
Help with DB build/deploy error.
Seemingly fixed this error by running the deploy/build command inline with my local DB env variable found in .wasp/out/server/.env ... command looked like:
DATABASE_URL="<your_database_url>" wasp deploy fly launch <app_name> den
DATABASE_URL="<your_database_url>" wasp deploy fly launch <app_name> den
seems a little hack-y though
11 replies
WWasp-lang
Created by SoyMilkIsOk on 1/16/2024 in #đŸ™‹questions
Help with DB build/deploy error.
Still stuck unfortunately
11 replies
WWasp-lang
Created by SoyMilkIsOk on 1/16/2024 in #đŸ™‹questions
Help with DB build/deploy error.
11 replies
WWasp-lang
Created by SoyMilkIsOk on 5/29/2023 in #đŸ™‹questions
Wildcard routes for 404/not found redirects?
Woo thanks guys! This and favicons are all I need and I’m gonna launch my app to the public!
19 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
After following the tutorial and removing that line I deployed to fly.io and all custom domains work with no problems, I will mark this issue as closed.
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
Just figured that out right when I got your message! Appreciate the help.
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
No description
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
Reopening this issue, here is my code in ServerSetup.ts:
import cors from 'cors'
import { MiddlewareConfigFn } from '@wasp/middleware'
import config from '@wasp/config.js'

export const serverMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => {
// Example of adding an extra domains to CORS.
middlewareConfig.set('cors', cors({ origin: [config.frontendUrl, 'website1.com', 'www.website1.com'] }))
return middlewareConfig
}

export default serverMiddlewareFn
import cors from 'cors'
import { MiddlewareConfigFn } from '@wasp/middleware'
import config from '@wasp/config.js'

export const serverMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => {
// Example of adding an extra domains to CORS.
middlewareConfig.set('cors', cors({ origin: [config.frontendUrl, 'website1.com', 'www.website1.com'] }))
return middlewareConfig
}

export default serverMiddlewareFn
And here is the error I'm getting:
[Server] src/server.ts(18,10): error TS2352: Conversion of type 'MiddlewareConfigFn' to type 'ServerSetupFn' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
[Server] Types of parameters 'middlewareConfig' and 'context' are incompatible.
[Server] Type 'ServerSetupFnContext' is missing the following properties from type 'Map<string, RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>>': clear, delete, forEach, get, and 8 more.
[Server] [nodemon] app crashed - waiting for file changes before starting...
[Server] src/server.ts(18,10): error TS2352: Conversion of type 'MiddlewareConfigFn' to type 'ServerSetupFn' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
[Server] Types of parameters 'middlewareConfig' and 'context' are incompatible.
[Server] Type 'ServerSetupFnContext' is missing the following properties from type 'Map<string, RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>>': clear, delete, forEach, get, and 8 more.
[Server] [nodemon] app crashed - waiting for file changes before starting...
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
@shayne I was not, moved onto other work yesterday, I'll be off work today at 3pm and can give it another shot after that though!
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
No description
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
No description
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
Headed to lunch sorry I will try this when I get home!
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
No description
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
No description
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
Still doesnt seem to work now, DB wont connect on dev build
47 replies
WWasp-lang
Created by SoyMilkIsOk on 5/24/2023 in #đŸ™‹questions
Custom domain with Fly.io not working?
No description
47 replies