#Trying to export default static site

50 messages · Page 1 of 1 (latest)

onyx ibex
#

This is what I actually see:

#

i ran npm run build which runs next build which created the output without any noticeable errors in the console

onyx ibex
#

is this normal for next or am i just doing this wrong?

plush sundial
#

what exactly are you doing?

#

after you run build, if you want it served you'll need to run next start

onyx ibex
plush sundial
#

That's actually not how Browsers let you do things in a lot of cases

onyx ibex
#

with just natural html routing

plush sundial
#

Just because it's static, doesn't mean it doesn't need to be served

onyx ibex
#

oh

#

is there a way to run next.js without it being served?

plush sundial
#

next export -h

#

still needs to be served

onyx ibex
#

then what does the -h option do

plush sundial
#

you can't expect just any assets to work without a web server

#

it shows the help info for that command...

onyx ibex
#

alright

#

thanks for your information

#

do you know of any SSG's that export sites that don't need to be served

plush sundial
#

what you're looking for has a very limited scope

#

do you understand that?

onyx ibex
#

you mean like nobody uses it?

#

i don't wanna host a web server on my site just yet because it's really expensive

#

i just want a static serverless site that says coming soon

plush sundial
#

web server on my site doesn't make sense, that's backwards

#

I think you probably misunderstand some basics

#

what do you actually want to deploy this to?

onyx ibex
#

aws

plush sundial
#

... AWS serves you files

onyx ibex
#

yes

plush sundial
#

that's a server

onyx ibex
#

my personal site is aws

plush sundial
#

so you have a "server"

onyx ibex
#

and just basic html and css

#

wait a second

#

i'm using lightsail for my personal site

plush sundial
#

literally has "server" in its name

onyx ibex
#

oh wow i had no idea

#

i remember setting something up in the past where a github repo was linked to something on aws

plush sundial
#

browsers expect files via HTTP...

onyx ibex
#

where after i push my changes, aws would just copy it to the server

plush sundial
#

welp now you know

onyx ibex
#

i just wanna do something like that

plush sundial
#

I explicitly ask people to talk to me and not just send me friend requests in the about-me section of my profile

#

please don't

#

the fuck?

oak pecan
#

@onyx ibex you have been warned, do not do that again

#

@plush sundial next time just ping mods