fixbug
V2EX  ›  Next.js

Nextjs 如何部署到阿里云 的 OSS

  •  
  •   fixbug · Oct 20, 2022 · 3973 views
    This topic created in 1477 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
    B3C933r4qRb1HyrL
    Oct 20, 2022
    1
    阿里 OSS 执行不了 Node 服务。Next.js 是依赖 Node 服务的,除非`next export`。
    233373
    233373
    Oct 20, 2022
    2
    OSS 是静态文件托管的吧。。。
    fixbug
    fixbug
    OP
    Oct 20, 2022
    3
    @cuvii 好吧,我尝试下 next export ,谢谢
    fixbug
    fixbug
    OP
    Oct 20, 2022
    4
    @cuvii 你好,可以推荐一下如何部署到阿里云上的类似文章吗 ? next export 并不满足我的需求,谢谢
    DomenicCarter
    DomenicCarter
    Oct 27, 2023
    6
    应该不能吧, nexj.js 要服务器端渲染, 要 node
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3073 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 11:13 · PVG 19:13 · LAX 03:13 · JFK 06:13
    ♥ Do have faith in what you're doing.