fixbug
V2EX  ›  Next.js

Nextjs 如何部署到阿里云 的 OSS

  •  
  •   fixbug · Oct 20, 2022 · 3595 views
    This topic created in 1303 days ago, the information mentioned may be changed or developed.

    第一次使用 OSS 服务,之前用的 vercel 部署的,以为很简单,现在部署到阿里云的 OSS 上,搞不定了,不知道是需要配置 Server.js 还是什么,求教

    6 replies    2023-10-27 16:49:44 +08:00
    B3C933r4qRb1HyrL
        1
    B3C933r4qRb1HyrL  
       Oct 20, 2022
    阿里 OSS 执行不了 Node 服务。Next.js 是依赖 Node 服务的,除非`next export`。
    233373
        2
    233373  
       Oct 20, 2022
    OSS 是静态文件托管的吧。。。
    fixbug
        3
    fixbug  
    OP
       Oct 20, 2022
    @cuvii 好吧,我尝试下 next export ,谢谢
    fixbug
        4
    fixbug  
    OP
       Oct 20, 2022
    @cuvii 你好,可以推荐一下如何部署到阿里云上的类似文章吗 ? next export 并不满足我的需求,谢谢
    DomenicCarter
        6
    DomenicCarter  
       Oct 27, 2023
    应该不能吧, nexj.js 要服务器端渲染, 要 node
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   998 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 18:48 · PVG 02:48 · LAX 11:48 · JFK 14:48
    ♥ Do have faith in what you're doing.