W
Waspβ€’3mo ago
Sven

Help with domain and server/client url

I have the domain coolthing.nl now when i add this custom domain using fly.io what does the server and client url change to? Right now it is: https://coolthing-server.fly.dev and https://coolthing-client.fly.dev But for my other programs and apps that interact with the server i need to know what the server url becomes when changing the domain to coolthing.com
42 Replies
kapa.ai
kapa.aiβ€’3mo ago
Hi @Sven. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To set up a custom domain for your Wasp app deployed on Fly.io, you'll need to follow a few steps. When you add the custom domain coolthing.nl, your server and client URLs will change. Here's what you need to know: 1. First, you'll need to add your custom domain to your Fly.io app using the Wasp CLI command:
wasp deploy fly cmd --context client certs create coolthing.nl
wasp deploy fly cmd --context client certs create coolthing.nl
2. After adding the custom domain, your client URL will change to: <https://coolthing.nl> 3. For the server URL, you have two options: a. You can keep using the current server URL: <https://coolthing-server.fly.dev>
b. Or you can set up a subdomain for your server, like: <https://api.coolthing.nl> 4. After setting up the custom domain, you need to update the WASP_WEB_CLIENT_URL environment variable for your server app:
wasp deploy fly cmd --context server secrets set WASP_WEB_CLIENT_URL=<https://coolthing.nl>
wasp deploy fly cmd --context server secrets set WASP_WEB_CLIENT_URL=<https://coolthing.nl>
5. If you decide to use a subdomain for your server (option b), you'll also need to update the WASP_SERVER_URL environment variable:
wasp deploy fly cmd --context server secrets set WASP_SERVER_URL=<https://api.coolthing.nl>
wasp deploy fly cmd --context server secrets set WASP_SERVER_URL=<https://api.coolthing.nl>
For your other programs and apps that interact with the server, you should use whichever server URL you decide on (either <https://coolthing-server.fly.dev> or <https://api.coolthing.nl> if you set up a subdomain). Remember to update your DNS records as instructed by Fly.io when you add the custom domain Using a Custom Domain For Your App (https://wasp-lang.dev/docs/advanced/deployment/cli#using-a-custom-domain-for-your-app). Also, make sure to update the REACT_APP_API_URL environment variable when building your client to point to the correct server URL Client configuration object (https://wasp-lang.dev/docs/advanced/accessing-app-config#client-configuration-object). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Sven, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Sven
SvenOPβ€’3mo ago
how could i set subdomain api. and what will serverurl be then?
NEROX
NEROXβ€’3mo ago
No description
Sven
SvenOPβ€’3mo ago
what would my server yrl become then? https://api.yourapp.com/ ?? or in my case
NEROX
NEROXβ€’3mo ago
should yes and add the records for the subdomain and the certificate again
Sven
SvenOPβ€’3mo ago
https://api.coolthing.nl/ So what env variables do i change when chaning client url and server url
MEE6
MEE6β€’3mo ago
Wohooo @Sven, you just became a Waspeteer level 13!
Sven
SvenOPβ€’3mo ago
exactly
Filip
Filipβ€’3mo ago
Hi @Sven, it's the two variables in the response that @NEROX screenshotted (thanks for the help btw, appreaciate it): https://discord.com/channels/686873244791210014/1310922235976093737/1310953664961314876 Btw, @NEROX, one pro tip for helping on Discord. I've found that sending links to messages is better than sending screenshots because people can then see the context and also copy paste stuff
Sven
SvenOPβ€’3mo ago
cool
Filip
Filipβ€’3mo ago
If you still need help, ping me πŸ™‚
Sven
SvenOPβ€’3mo ago
Yeah i cant seem to get it to work since. Maybe because it takes some time.. Do i also need to set the REACT_APP_API_URL? Or was that just for the case of that specific user? I’m setting up DNS for my project and ran the following commands to configure and verify my domain using Fly: --- Commands I Ran 1. Generated certificates for example.com: wasp deploy fly cmd --context client certs create example.com Output instructed me to: - Add an A record pointing to xxx. - Add an AAAA record pointing to xxx. 2. Set up the web client URL: wasp deploy fly cmd --context server secrets set WASP_WEB_CLIENT_URL=https://example.com 3. Tried creating a certificate for www.example.com: wasp deploy fly cmd --context client certs create www.example.com Output instructed me to: - Add a CNAME record pointing www to webapp-client-placeholder.fly.dev. - however docs said to do it towards example.com 4. Tried creating a certificate for api.example.com: wasp deploy fly cmd --context server certs create api.example.com Output instructed me to: - Add a CNAME record pointing api to webapp-server-placeholder.fly.dev. - no docs on this so not sure what to fill in here.. --- What I Configured in Namecheap I filled in the following records into Namecheap: 1. A Record: - Host: @ - Value: XXX - TTL: Automatic 2. AAAA Record: - Host: @ - Value: XXX - TTL: Automatic 3. CNAME Record for api: - Host: api - Value: example.com - TTL: Automatic 4. CNAME Record for www: - Host: www - Value: example.com - TTL: Automatic --- Issues 1. Verification Fails: - In fly the A and AAAA records are not verified. - The domain (example.com) and subdomains (www.example.com and api.example.com) don’t load. 2. Uncertainty About CNAMEs: - Should www.example.com point to webapp-client-placeholder.fly.dev instead of example.com? - Should api.example.com point to webapp-server-placeholder.fly.dev instead of example.com? --- Could you help identify what’s wrong with my setup or suggest the correct configuration? @Filip i needed to ping ----------------- and now how could i make sure when users search for my site the ydont end up on the fly.io domain thing, i want only my domain to be available Okay so the subdomain www and main domain example.com βœ… works now However my client side still makes requests to the webapp-server-placeholder.fly.dev endpoint. I use this deploy command:
"deploy": "REACT_APP_GOOGLE_ANALYTICS_ID=G-GXXXX REACT_APP_API_URL=https://api.example.com wasp deploy fly deploy"
"deploy": "REACT_APP_GOOGLE_ANALYTICS_ID=G-GXXXX REACT_APP_API_URL=https://api.example.com wasp deploy fly deploy"
and this command to set secrets:
wasp deploy fly cmd secrets set WASP_SERVER_URL=https://api.example.com --context=server
wasp deploy fly cmd secrets set WASP_SERVER_URL=https://api.example.com --context=server
@kapa.ai
kapa.ai
kapa.aiβ€’3mo ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Based on the information you've provided, it seems that you're encountering an issue with your client-side requests still being directed to the old server endpoint, despite setting up a custom domain. Let's address this step by step: 1. Your deploy command looks correct, as you're setting the REACT_APP_API_URL to <https://api.example.com.> This should theoretically update the client-side configuration to use the new API URL. 2. Setting the WASP_SERVER_URL secret for the server context is also correct. However, there are a few things to consider and check: 1. Make sure you're rebuilding the client after setting the new REACT_APP_API_URL. The client-side environment variables are embedded at build time, not runtime Accessing the configuration (https://wasp-lang.dev/docs/advanced/accessing-app-config#client-configuration-object). 2. Verify that the REACT_APP_API_URL is actually being picked up during the build process. You can check this by logging config.apiUrl in your client-side code:
import { config } from 'wasp/client'
console.log(config.apiUrl)

import { config } from 'wasp/client'
console.log(config.apiUrl)

3. Ensure that you've also set the WASP_WEB_CLIENT_URL for the server. This is crucial for CORS configuration Deploying Manually (https://wasp-lang.dev/docs/advanced/deployment/manually#environment-variables):
wasp deploy fly cmd --context server secrets set WASP_WEB_CLIENT_URL=<https://example.com>

wasp deploy fly cmd --context server secrets set WASP_WEB_CLIENT_URL=<https://example.com>

4. Double-check that your client-side code is using the config.apiUrl for API requests, rather than hardcoded URLs. 5. Clear your browser cache and do a hard refresh to ensure you're not seeing cached content. If you've done all of the above and are still experiencing issues, it's possible there might be a bug in how Wasp is handling the environment variables during the build process. In this case, you might want to: 1. Try building the client manually after wasp build:
cd .wasp/build/web-app
REACT_APP_API_URL=<https://api.example.com> npm run build

cd .wasp/build/web-app
REACT_APP_API_URL=<https://api.example.com> npm run build

2. If the issue persists, it would be worth reporting this as a potential bug to the Wasp team, as there have been similar issues in the past Github Issue (https://github.com/wasp-lang/wasp/issues/1271). Remember, changes to environment variables require a rebuild and redeploy of your application to take effect. If you're still facing issues after trying these steps, it might be helpful to reach out to the Wasp community or open an issue on their GitHub repository for more specific assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Sven, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Sven
SvenOPβ€’3mo ago
and now how could i make sure when users search for my site the ydont end up on the fly.io domain thing, i want only my domain to be available @kapa.ai
kapa.ai
kapa.aiβ€’3mo ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- To ensure users only access your site through your custom domain and not the Fly.io domain, you can take the following steps: 1. Set up URL redirects: You can configure your Fly.io app to redirect all traffic from the *.fly.dev domain to your custom domain. This can be done by adding a redirect rule to your fly.toml file. Here's an example of how you might do this:
[[http_service.checks]]
grace_period = "10s"
interval = "30s"
method = "GET"
path = "/healthz"
protocol = "http"
timeout = "5s"

[[http_service.routes]]
path = "/*"
redirect = "<https://coolthing.nl">

[[http_service.checks]]
grace_period = "10s"
interval = "30s"
method = "GET"
path = "/healthz"
protocol = "http"
timeout = "5s"

[[http_service.routes]]
path = "/*"
redirect = "<https://coolthing.nl">

This configuration will redirect all traffic from your Fly.io domain to your custom domain. 2. Update your CORS settings: Make sure your server's CORS settings only allow requests from your custom domain. You can do this by setting the WASP_WEB_CLIENT_URL environment variable to your custom domain Deploying Manually (https://wasp-lang.dev/docs/advanced/deployment/manually#environment-variables):
wasp deploy fly cmd --context server secrets set WASP_WEB_CLIENT_URL=<https://coolthing.nl>

wasp deploy fly cmd --context server secrets set WASP_WEB_CLIENT_URL=<https://coolthing.nl>

3. Update your client configuration: Ensure that your client-side code is always using your custom domain for API requests. This can be done by setting the REACT_APP_API_URL environment variable during deployment Using a Custom Domain For Your App (https://wasp-lang.dev/docs/advanced/deployment/cli#using-a-custom-domain-for-your-app):
REACT_APP_API_URL=<https://api.coolthing.nl> wasp deploy fly deploy

REACT_APP_API_URL=<https://api.coolthing.nl> wasp deploy fly deploy

4. Remove public access to Fly.io domains: While not directly supported by Fly.io, you can effectively achieve this by setting up a firewall rule in your fly.toml file that blocks all traffic except from your custom domain. However, this approach should be used cautiously as it might interfere with Fly.io's health checks. By implementing these measures, you can significantly reduce the likelihood of users accessing your site through the Fly.io domain. However, keep in mind that it's not always possible to completely prevent access to the Fly.io domain, as it's used for various internal purposes by the Fly.io platform. Remember to test thoroughly after making these changes to ensure your application still functions correctly. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Sven, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Sven
SvenOPβ€’3mo ago
hmmm any help from team start here.
NEROX
NEROXβ€’3mo ago
@kapa.ai How can I know the WASP_SERVER_URL from my fly server? Which url should be? Can give an example?
kapa.ai
kapa.aiβ€’3mo ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- To answer your question about the WASP_SERVER_URL for your Fly.io server, let's break it down: The WASP_SERVER_URL should be the URL where your Wasp server is running on Fly.io. Typically, this URL follows a specific pattern:
<https://<your-app-name>.fly.dev>
<https://<your-app-name>.fly.dev>
For example, if your Fly.io app is named "my-wasp-app", your WASP_SERVER_URL would be:
<https://my-wasp-app.fly.dev>
<https://my-wasp-app.fly.dev>
You can find or set this URL in a few ways: 1. Check your Fly.io dashboard: Log into your Fly.io account and look at the details of your deployed app. 2. Use the Fly.io CLI: Run flyctl info in your terminal to get information about your app, including its URL. 3. If you've set up a custom domain, use that instead. For example:
<https://api.yourdomain.com>

<https://api.yourdomain.com>

Once you know the correct URL, you can set it as an environment variable for your Fly.io app using the following command:
flyctl secrets set WASP_SERVER_URL=<https://your-app-name.fly.dev>
flyctl secrets set WASP_SERVER_URL=<https://your-app-name.fly.dev>
Or, if you're using the Wasp CLI for deployment:
wasp deploy fly cmd --context server secrets set WASP_SERVER_URL=<https://your-app-name.fly.dev>
wasp deploy fly cmd --context server secrets set WASP_SERVER_URL=<https://your-app-name.fly.dev>
Remember, this URL is crucial for proper configuration, especially for features like OAuth authentication Deploying Manually (https://wasp-lang.dev/docs/advanced/deployment/manually#environment-variables). Make sure to also set the WASP_WEB_CLIENT_URL to your client's URL for proper CORS configuration. If you're unsure about your specific Fly.io app's URL, I recommend checking your Fly.io dashboard or using the Fly.io CLI to confirm the correct URL before setting it as the WASP_SERVER_URL. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEROX, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Sven
SvenOPβ€’3mo ago
just can't get serverside domain get to work. Client keeps pointing to fly domain, when i think i set the api.example.com domain correct (verified in fly too) and go to that it doesnt show "hello world" which my server noramlly should do for fly domain also i want to know how to redirect visitors that access fly domain to my own domain on client side β€”β€”β€”β€”- Tldr: 1. everything works fine, client custom domain works. What i want for the client side now is that it redirects app.fly.dev to my Custom domain. I dont want users to use the tool on fly domain. 2. The server url has also changed to my new domain: api.custom.com, (i see β€œhello world” when i navigate to the ep. however i cant seem to get my client point to this endpoint. It still tries the fly.dev endpoint eventhough i run: REACT_APP_API_URL=https://api.custom.com wasp deploy fly deploy But when i run this i notice in the logs that it does:
πŸš€ Server has been deployed!
πŸš€ Deploying your client now...
$ cd /home/sven/SaaS/proj/app/.wasp/build/web-app
πŸš€ Building web client for production...
$ npm install

up to date, audited 76 packages in 632ms

12 packages are looking for funding
run `npm fund` for details

found 0 vulnerabilities
$ REACT_APP_API_URL=https://example-server.fly.dev npm run build
πŸš€ Server has been deployed!
πŸš€ Deploying your client now...
$ cd /home/sven/SaaS/proj/app/.wasp/build/web-app
πŸš€ Building web client for production...
$ npm install

up to date, audited 76 packages in 632ms

12 packages are looking for funding
run `npm fund` for details

found 0 vulnerabilities
$ REACT_APP_API_URL=https://example-server.fly.dev npm run build
See how REACT_APP_API_URL is set to the default fly.dev one eventhough i pass it through terminal?
Filip
Filipβ€’3mo ago
Hey @Sven, this looks very familiar. I think this was a bug we fixed a while ago. Which version of Wasp are you using?
Sven
SvenOPβ€’3mo ago
14 or smth Yeah like 14 not sure now Not athome
Filip
Filipβ€’3mo ago
That should be new enough @miho Do you maybe remember this problem? I can't find the mention of it anywhere but I've sure we've seen it before It's enough to only read the message I'm replying too. You can skip everything else.
miho
mihoβ€’3mo ago
@Sven please run wasp version so we know for sure which version are you running. See: https://github.com/wasp-lang/wasp/pull/2234 We fixed this with 0.15.0
GitHub
Override serverUrl in wasp deploy fly deploy command by Case-E Β· Pu...
Description Fixes #2233 Select what type of change this PR introduces: Just code/docs improvement (no functional change). Bug fix (non-breaking change which fixes an issue). New feature (non-br...
Filip
Filipβ€’3mo ago
Yeah, that's it. Thanks @miho! Ok, @Sven, so you should update to 0.15 and everything should work fine πŸ™‚ Here's the migration guide: https://wasp-lang.dev/docs/migration-guides/migrate-from-0-14-to-0-15
Sven
SvenOPβ€’3mo ago
0.14.1
Filip
Filipβ€’3mo ago
Yeah, update it to 0.15.0 and it will get fixed πŸ˜„
Sven
SvenOPβ€’3mo ago
yes in the middle of doing this, i get this when i try to start db:
❌ --- [Error] Analyzing wasp project failed: -------------------------------------

1 errors found:
- Your Wasp version does not match the app's requirements.
You are running Wasp 0.14.1.
This app requires Wasp ^0.15.0.
To install specific version of Wasp, do:
curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v x.y.z
where x.y.z is your desired version.
Check https://github.com/wasp-lang/wasp/releases for the list of valid versions.
❌ --- [Error] Analyzing wasp project failed: -------------------------------------

1 errors found:
- Your Wasp version does not match the app's requirements.
You are running Wasp 0.14.1.
This app requires Wasp ^0.15.0.
To install specific version of Wasp, do:
curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v x.y.z
where x.y.z is your desired version.
Check https://github.com/wasp-lang/wasp/releases for the list of valid versions.
never did a migration tbhb haha @kapa.ai yes in the middle of doing this, i get this when i try to start db:
❌ --- [Error] Analyzing wasp project failed: -------------------------------------

1 errors found:
- Your Wasp version does not match the app's requirements.
You are running Wasp 0.14.1.
This app requires Wasp ^0.15.0.
To install specific version of Wasp, do:
curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v x.y.z
where x.y.z is your desired version.
Check https://github.com/wasp-lang/wasp/releases for the list of valid versions.
❌ --- [Error] Analyzing wasp project failed: -------------------------------------

1 errors found:
- Your Wasp version does not match the app's requirements.
You are running Wasp 0.14.1.
This app requires Wasp ^0.15.0.
To install specific version of Wasp, do:
curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v x.y.z
where x.y.z is your desired version.
Check https://github.com/wasp-lang/wasp/releases for the list of valid versions.
kapa.ai
kapa.aiβ€’3mo ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- It appears you're encountering a version mismatch between the Wasp version you have installed and the version required by your project. This is a common issue when working with different Wasp projects or when a project has been updated to use a newer version of Wasp. To resolve this, you need to update your Wasp installation to version 0.15.0 or higher. Here's how you can do that: 1. Use the installer script to install the latest version of Wasp:
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh

curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh

This will install the latest stable version of Wasp, which should be 0.15.0 or higher. 2. If you want to install a specific version (for example, 0.15.0), you can use:
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh -s -- -v 0.15.0

curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh -s -- -v 0.15.0

3. After installation, verify your Wasp version by running:
wasp version

wasp version

This should show the newly installed version CLI Reference (https://wasp-lang.dev/docs/general/cli#miscellaneous-commands). 4. Once you've updated Wasp, try running your command again. If you're working on multiple Wasp projects that require different versions, you might want to consider using a version manager for Wasp. However, as of my knowledge cutoff, Wasp doesn't have an official version manager like nvm for Node.js. Remember to check the Wasp releases page (https://github.com/wasp-lang/wasp/releases) for the latest versions and any breaking changes or migration steps that might be necessary when upgrading. If you continue to face issues after updating, please let me know, and I'll be happy to help further. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Sven, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Sven
SvenOPβ€’3mo ago
found it out myself i guess:
curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v 0.15.0
curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v 0.15.0
βœ… Solved: Migrating 0.14.0 -> 0.15.0 fixed the issue. follow migration guide but dont forget to : npm install [email protected] as this is not mentioned in the migration guide. Would you know how i could redirect users fron my fly.dev url to my custom domain? and also on my www. subdomain i get cors error @Filip any tipss
Filip
Filipβ€’3mo ago
Hey @Sven, so: - You shouldn't be redirecting users to the fly domain, it should be handled by the DNS. Check the docs here: https://wasp-lang.dev/docs/advanced/deployment/cli#using-a-custom-domain-for-your-app Going thrugh those steps will also take care of the CORS for you as well. There shouldn't be any need for CORS middleware with the basic setup.
Sven
SvenOPβ€’3mo ago
No i mean everything works, the thing is that the fly.dev domain still exists and dont want users to be able to go there So i want to redirect them to my custom domain
Filip
Filipβ€’3mo ago
Ooh, in that case Look into Fly's settings They definitely have a way to "turn off" the fly domain
Sven
SvenOPβ€’3mo ago
hahah the thing is they dont really bad
Filip
Filipβ€’3mo ago
This is actually not correct. It should be working without you having react-router-dom in your package.json (it says that in the instructions):
No description
Filip
Filipβ€’3mo ago
@Sven Can you pls confirm Wasp works if you remove that?
Sven
SvenOPβ€’3mo ago
Lemme check @Filip tips for this?
Filip
Filipβ€’3mo ago
Sorry, was out for a couple of days I think your best bet is to redirect them from javascript @kapa.ai Give me a javascript <script /> snippet that redirects the user upon landing on a page if the domain matches fly.dev
kapa.ai
kapa.aiβ€’3mo ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Here's a JavaScript snippet that you can use to redirect users if they land on a page with a domain that matches "fly.dev":
<script>
if (window.location.hostname.endsWith('fly.dev')) {
window.location.href = '<https://your-custom-domain.com'> + window.location.pathname;
}
</script>
<script>
if (window.location.hostname.endsWith('fly.dev')) {
window.location.href = '<https://your-custom-domain.com'> + window.location.pathname;
}
</script>
This script does the following: 1. It checks if the current hostname (domain) ends with 'fly.dev'. 2. If it does, it redirects the user to your custom domain, preserving the current path. To use this snippet: 1. Replace '<https://your-custom-domain.com'> with your actual custom domain. 2. Place this script in the <head> section of your HTML file, or in your main JavaScript file if you're using a single-page application. Remember that while this client-side redirect can be helpful, it's not a foolproof solution. For better security and SEO, it's recommended to also implement server-side redirects as discussed earlier Using a Custom Domain For Your App (https://wasp-lang.dev/docs/advanced/deployment/cli#using-a-custom-domain-for-your-app). Also, keep in mind that this script will run on every page load, so it might slightly impact the initial load time of your application. For a more robust solution, consider implementing the redirects at the server level or using Fly.io's configuration options to handle redirects. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Filip, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Filip
Filipβ€’3mo ago
@Sven This sounds right. You can try it out in the dev console before including it in your app. Once you're happy, add the script to the head field in the app declaration (in the Wasp file). First try it out on localhost, then change the domain to fly and that should work
Sven
SvenOPβ€’3mo ago
Ahh thanks alot! What would be best file to place this? Or on each route?
Filip
Filipβ€’3mo ago
add the script to the head field in the app declaration (in the Wasp file).
This
Filip
Filipβ€’3mo ago
Customizing the App | Wasp
Each Wasp project can have only one app type declaration. It is used to configure your app and its components.

Did you find this page helpful?