Antonio Ivanov
Antonio Ivanov
NNuxt
Created by Antonio Ivanov on 7/28/2024 in #❓・help
Nuxt 3 Charts
No description
8 replies
NNuxt
Created by Antonio Ivanov on 6/29/2023 in #❓・help
How to get a static ip address?
I'm trying to find a hosting service that can provide me with a static IP address for my server-side application with nuxt. I need to add my IP address to a whitelist for another product. However, the problem is that most hosting services use dynamic IP addresses, does anyone knows how to get one static ip or do i have to create a server side application without using nuxt for that? 🫠
5 replies
NNuxt
Created by Antonio Ivanov on 1/13/2023 in #❓・help
Connecting AWS S3 to Nuxt 3
So i'm trying to use S3 to upload some profiles images and then be able to call them by a URL, and for this i wanted to create a Nuxt plugin to add all the related functions to it but for now i'm trying to keep it simple
//plugins/s3.js

import S3 from 'aws-sdk/clients/s3'

export default defineNuxtPlugin(nuxtApp => {
return {
provide: { S3 },
};
});
//plugins/s3.js

import S3 from 'aws-sdk/clients/s3'

export default defineNuxtPlugin(nuxtApp => {
return {
provide: { S3 },
};
});
by doing this i'm getting issues with vite that are saying that global is not define, so i found that i could add some vite config inside my nuxt.config.ts and i did it
//nuxt.config.ts

vite: {
define: {
'global': {}
}
},
//nuxt.config.ts

vite: {
define: {
'global': {}
}
},
but by doing that i'm having some conflict at /node_modules/nuxt/dist/pages/runtime/router.mjs:65:4 so there is a solution by adding "window" but if i added i'm getting another error on production saying " TypeError: t is not a constructor" and that's all 🙂 what would be the best approach to fix this issue? i just want to be able to upload files and call them
3 replies