#how to upload my portfolio
107 messages ยท Page 1 of 1 (latest)
and when im on this site what should i do ?
you want to deploy your site right?
you need to choose a service to deploy to
yes, but what service is the best to deploy a portfolio ? they are all the same ?
are you using github/gitlab?
hm i don't really know, i follow a tutorial with astro and a template of a portfolio, this one but i don't know what type is it https://astro.build/themes/details/portfolio/
im not good at code sorry
astro doesn't really come with a preconfigured way to deploy your page
you need to choose a service to use for your page
and that will probably require some code knowledge
but you can try and follow one of the guides
hmmm okay i will see so
cloudflare pages, vercel, netlify are going to be your easiest options... you just connect your repo
If you need ssr or any backend, fly is super easy
i follow the tutorial, but when i type "vercel" in my cmd this appear
do you know how to fix it ?
@nocturne tulip
I'm not too familiar with vercel, what does your vercel.json (or whatever it's called) look like?
this ?
https://vercel.com/docs/projects/project-configuration# this one; maybe it's optional though
so what should i do, i don't really understand ?
what do the rest of the lines say if you expand the log?
What do the rest of the logs say? are you using npm?
vercel should detect you're using astro and install your pkg
i don't see the expand line
in here
yes i use npm
oh sry
try changing the vercel cmd to npm astro build ?
and how can i do it ?
this one ?
create vercel.json:
{
"buildCommand": "npx astro build"
}
Thats astro, check if they added a line to your package.json
where did i put it ?
That .vercel/readme should have instructions too
That's lame ๐
But yeah, try vercel.json file in base and add build cmd
Or, at this point, I would probably just use another provider...
like netlify ?
Yeah, or cloudflare pages
The whole point of them is it just works, as soon as you start fighting with it, just walk away ๐
okkay, i will try cloudflare pages so
Ping me if you have issues, but you probably wont ๐
just, is it free ?
I said nothing, my bad
Something like first 10mil visits per month and then 5$ for another 100mil/m, cheaper than vercel
Cloudflare Free says unlimited requests & bandwidth even
@tawdry frigate when i do the "npx wrangler pages deploy dist" they do an error
You're cursed!
what's that ?
Then no ๐
yes its working
yeah npm run preview
And it looks same?
yes
Then, yeah, idk ๐
Pretty disappointing error from cloudflare
So... can try netlify, but tbh there's probably something else wrong if vercel and cf error out
Next step for help you be putting this in a repo ( like github )
yes idk its so strange
But thats more to get into, lots of guides online
Yeah, I really can't image what it is... they should just copy your dist and be done
Maybe try deploying another pages app, like just an html file hello world
Atleast know if everything works without your app
503 may be an actual outage
maybe just try the command again?
yes i think its working but the "V5.mp4" is already delete so why they say me that ?
@nocturne tulip
you definitely shouldn't include a 30 mb mp4 in your website
yes its why i delete it but they say the same message another time
you probably need to run astro build again
OH YES i think its good, can you tell me if it is, do you can go on the site ? https://17f96ae5.portfolio-4bt.pages.dev
Portfolio de Ayuxay monteur en freelance
yes
c'est belle
For your video, if you can't compress it, you can create r2 ( cloudflare s3 ) bucket and put it there, set the bucket public, then use it's url in your astro page ( just make sure to set it to lazy )
no its ok i cant compress it,thanks anyway
but i have a question, can my portfolio be updated without them having to give me a new link each time?
Yeah, do that if you can't
Thats probably just a preview link, your main deployment is at the rest of the domain
like portfolio-4bt.pages.dev
yes, how i can change this ?
Not sure what you mean, like add your domain?
i want to have a link who update with any change on my portfolio
like i don't have to all the time change the link
To cause your page to rebuild? they have webhook for that in the settings
If you mean to access it at a single url, its already doing that
The preview links are for that instance, but since you're not doing version control, your app will always be at the same url anyways
portfolio-4bt.pages.dev
For like 10$ you can buy a domain and connect it
hmmm ok i see, so if i want for the link to updates automatically when i change something i need to pay for a domain
this one
You can just ignore the first segment ( if you start using git, you'll see what that is )
the part starting with portfolio is your main website url
okay but when i add or change something on my site i need to update the link because when i just refresh the page my change doens't appear
No, just don't use the first part of it ๐