简体   繁体   English

是否可以使用 next.js 从远程文件系统获取页面

[英]Is it possible to get pages from remote file system with next.js

Hi I am quite new to advance frontend technologies and I have simple question.嗨,我对推进前端技术还很陌生,我有一个简单的问题。

scenario设想

I would like to use next.js and its feature: server side rendering.我想使用next.js及其功能:服务器端渲染。 I would like also to have my js, css and html files stored in outside of host machine where next.js is running.我还想将我的 js、css 和 html 文件存储在运行 next.js 的主机外部。 I want to have my files in azure blob storage .我想将我的文件保存在azure blob 存储中。 It is neccessary because I would like to have many SPA pages and single wwwroot directory is not enough for me.这是必要的,因为我想要很多 SPA 页面,而单个 wwwroot 目录对我来说是不够的。

Problem问题

By default next.js get its files from pages directory at host machine.默认情况下 next.js 从主机的pages目录中获取其文件。 Is it possible to tell next.js to get files from other file system etc. In this scenario it would be azure storage .是否可以告诉next.js从其他文件系统等获取文件。在这种情况下,它将是azure 存储 I could not find any example or extension point to do that.我找不到任何例子或扩展点来做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM