p4j4r5
WWasp
•Created by p4j4r5 on 1/29/2025 in #đŸ™‹questions
SEO issue . Twitter or facebook cannot recognise meta tags
Right so it is same issue I am facing.. I want to add meta tags for each of the page and different to what is in main.wasp
25 replies
WWasp
•Created by p4j4r5 on 1/29/2025 in #đŸ™‹questions
SEO issue . Twitter or facebook cannot recognise meta tags
I have the data in markdown which I would want to display as pages. This issue of not able to have proper meta tags, is holding me back on SEO optimisation.
On a different option, can have another server say in next JS, be able to use the authentication. Idea is to have page rendered via nextjs, but one of the API ( which gives full content) be visible only if authenticated.
25 replies
WWasp
•Created by p4j4r5 on 1/29/2025 in #đŸ™‹questions
SEO issue . Twitter or facebook cannot recognise meta tags
So it seems I need to rely on server side rendering.
25 replies
WWasp
•Created by p4j4r5 on 1/29/2025 in #đŸ™‹questions
SEO issue . Twitter or facebook cannot recognise meta tags

25 replies
WWasp
•Created by p4j4r5 on 1/29/2025 in #đŸ™‹questions
SEO issue . Twitter or facebook cannot recognise meta tags
Hi I am using Open Saas Template and using helmet to add custom content tags
25 replies
WWasp
•Created by p4j4r5 on 1/29/2025 in #đŸ™‹questions
SEO issue . Twitter or facebook cannot recognise meta tags
I need this page rendered from the server data I have and blog solution isn't feasible.
I am using react-helmet-async
25 replies
WWasp
•Created by p4j4r5 on 11/16/2024 in #đŸ™‹questions
sendgrid use email templates
Alright then. I may need to stick to defining templates within App, which isn't efficient for maintenance and wish I could use templates that are already defined.
6 replies
WWasp
•Created by balina on 7/18/2024 in #đŸ™‹questions
Is there a way automatically navigate to another page
Is this in new version v0.15 ? I am on version 0.14. May need to update it to 0.15 first then
16 replies
WWasp
•Created by balina on 7/18/2024 in #đŸ™‹questions
Is there a way automatically navigate to another page
@martinsos
I have hit the same issue ,where I have page which is rendered partial if user isn't signed up or logged in. Once he signs up, I need to redirect the user back to that page. So wondering if any options are there for this?
I have hit the same issue ,where I have page which is rendered partial if user isn't signed up or logged in. Once he signs up, I need to redirect the user back to that page. So wondering if any options are there for this?
16 replies
WWasp
•Created by p4j4r5 on 11/7/2024 in #đŸ™‹questions
How to use authUser conditionally in a react page?
This is how I do
in JSX I display data based on the state of metered variable
19 replies
WWasp
•Created by p4j4r5 on 11/8/2024 in #đŸ™‹questions
How to add delay to all responses
Nice.. that works.
11 replies
WWasp
•Created by p4j4r5 on 11/8/2024 in #đŸ™‹questions
How to add delay to all responses
@kapa.ai I tried adding below code and the server doesn't delay the responses . Any idea why?
11 replies
WWasp
•Created by p4j4r5 on 11/7/2024 in #đŸ™‹questions
How to use authUser conditionally in a react page?
I use useAuth() hook like this
const { data: user } = useAuth()
And then in useEffect, I conditionally call two different endpoints based on user
variable
and the authRequired on PageRoute within main.wasp is set to false19 replies
WWasp
•Created by p4j4r5 on 11/7/2024 in #đŸ™‹questions
How to use authUser conditionally in a react page?
Thanks @Sven Using
const { data: user } = useAuth()
works well. The suggestion you made seems to fail for me because I don't want authentication and the user object isn't injected into Props. Then typescript check fails.19 replies
WWasp
•Created by p4j4r5 on 11/7/2024 in #đŸ™‹questions
How to use authUser conditionally in a react page?
Thanks @kapa.ai Seems this should work for me. Will give this a try
19 replies
WWasp
•Created by p4j4r5 on 11/5/2024 in #đŸ™‹questions
How differentiate different status codes on client from HTTPerror thrown
@kapa.ai What is the function to use instead of useQuery when interacting with actions
10 replies
WWasp
•Created by p4j4r5 on 10/21/2024 in #đŸ™‹questions
Can I disable cors on backend
` wasp: {
version: "^0.14.0"
},
server: {
middlewareConfigFn: import { serverMiddlewareFn } from "@src/serverSetup"
},
11 replies
WWasp
•Created by p4j4r5 on 10/21/2024 in #đŸ™‹questions
Can I disable cors on backend
and the main.wasp is as below
11 replies
WWasp
•Created by p4j4r5 on 10/21/2024 in #đŸ™‹questions
Can I disable cors on backend
Yeah import looks all good. here is what I have
// src/serverSetup.js
import cors from 'cors'
import { config, type MiddlewareConfigFn } from 'wasp/server'
export const serverMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => {
// Example of adding an extra domains to CORS.
middlewareConfig.set('cors', cors({
origin: [config.frontendUrl, 'https://youtube.com']
}))
return middlewareConfig
}
11 replies
WWasp
•Created by p4j4r5 on 10/21/2024 in #đŸ™‹questions
Can I disable cors on backend
I am planning to use nginx for compression and other features. Handling cors using middle ware isn't working. I am doing exactly same thing as Bot suggested. Handling COR's on nginx is the other option I am pursuing. However there is no option for server not to setup CORS at all.
11 replies