Thomas Bnt
Thomas Bnt
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Thomas Bnt on 10/25/2024 in #djs-questions
Can I pass a props into `interaction.showModal()` ?
I would like to pass a props into interaction.showModal() , because I've got separated events and my value channel is in the command file. ([email protected])
4 replies
CDCloudflare Developers
Created by Thomas Bnt on 9/5/2024 in #pages-help
Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in `routes.json` is over
Hello, I would like to deploy my website under Nuxt 3 under Cloudflare pages with yarn run build, but I've got this error
Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in `routes.json` is over the 100 character limit. Refer to https://cfl.re/3FsE4aF.
Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in `routes.json` is over the 100 character limit. Refer to https://cfl.re/3FsE4aF.
2 replies
NNuxt
Created by Thomas Bnt on 9/5/2024 in #❓・help
Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in `routes.json` is over
Hello, I would like to deploy my website under Nuxt 3 under Cloudflare pages with yarn run build, but I've got this error
Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in `routes.json` is over the 100 character limit. Refer to https://cfl.re/3FsE4aF.
Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in `routes.json` is over the 100 character limit. Refer to https://cfl.re/3FsE4aF.
2 replies
DIAdiscord.js - Imagine an app
Created by Thomas Bnt on 8/1/2024 in #djs-questions
How to get the previous message from a message ?
Hello! I would like to get the previous message from a message, and create a link like https://discord.com/channels/${interaction.guild.id}/${message.channel.id}/${message.id} . If I can make that, I would like help, thanks!
10 replies
NNuxt
Created by Thomas Bnt on 4/20/2023 in #❓・help
SEO Cloudflare Pages doesn't work
Hello everybody ! 👋🏽 I would like to deploy my website under CF Pages. There is the example, and if you check the SEO when you share on Discord or other social media, he doesn't show up. The tags are here, but no preview. https://nuxt-starter-58k.pages.dev/ Anyone can help me for that? There is the public repository if you want see that : https://github.com/thomasbnt/nuxt-starter-public
2 replies
NNuxt
Created by Thomas Bnt on 4/1/2023 in #❓・help
router-link-exact-active with anchors
Hello, I would like to active/desactive router-link-exact-active but with anchors like http://example.com/#section1. It's possible?
2 replies
NNuxt
Created by Thomas Bnt on 3/30/2023 in #❓・help
Nuxt with Netlify functions
Hello, I would like to understand and ask if possible to deactivate functions from Netlify. I'm generating my website under Nuxt v3, and I didn't known Netlify functions are running.
7 replies
NNuxt
Created by Thomas Bnt on 3/15/2023 in #❓・help
Title change when I scroll
Hello, I've got problem with title using useHead. When I scroll into my page, the title changing to a another title of page.
16 replies
NNuxt
Created by Thomas Bnt on 3/14/2023 in #❓・help
How to fetch data only when I build the website
Hello ! 👋 I'm migrating to Nuxt 3 and I would like to deploy my website with Netlify. But I would like to fetch some data and that it be built without making HTTP requests to the relevant API on the client side. At this moment, and under Nuxt 2, he works like :
export default {
name: 'github_repos',
async fetch() {
this.allRepos = await fetch(
`https://api.github.com/users/thomasbnt/repos`, {
headers: {
'accept': 'application/vnd.github+json',
'content-type': 'application/json',
'Authorization': process.env.GITHUB_TOKEN
}
})
.then(async res => {
this.git = await res.json()
})
.catch(err => err)
},
data() {
return {
git
}
}
export default {
name: 'github_repos',
async fetch() {
this.allRepos = await fetch(
`https://api.github.com/users/thomasbnt/repos`, {
headers: {
'accept': 'application/vnd.github+json',
'content-type': 'application/json',
'Authorization': process.env.GITHUB_TOKEN
}
})
.then(async res => {
this.git = await res.json()
})
.catch(err => err)
},
data() {
return {
git
}
}
How I can recreate that under Nuxt 3 to avoid useless HTTP request on Client side ?
3 replies