GithubHelp home page GithubHelp logo

fastly / next-compute-js Goto Github PK

View Code? Open in Web Editor NEW
71.0 14.0 5.0 856 KB

Run Next.js on Fastly Compute

License: MIT License

TypeScript 92.15% JavaScript 6.72% Nunjucks 1.13%
compute-library fastly-oss-tier1

next-compute-js's Introduction

Next.js on Compute

NOTE: Version 2 is coming soon! It is a substantial update that contains support for additional features:

  • Adds support for Next.js 13. New modular design allows us to build support for new versions more easily.
  • Adds support for React 18's streaming rendering mode.
  • A new server layer that simulates Vercel's Middleware / Cache / Functions architecture.
    • Adds support for Edge SSR / Edge API Routes by specifying the edge runtime.
    • Adds support for Edge Middleware.
    • Adds support for Incremental Static Regeneration, with support for On-demand Revalidation and Draft Mode (as well as Preview Mode).

Check it out at https://github.com/fastly/next-compute-js/tree/v2

Deploy and serve your Next.js website from Fastly's blazing-fast Compute.

Next.js

Next.js is a popular JavaScript-based server framework that gives the developer a great experience – the ability to write in React for the frontend, and a convenient and intuitive way to set up some of the best features you need for production: hybrid static & server rendering, smart bundling, route prefetching, and more, with very little configuration needed.

Usage

Use create-next-app (or any alternative method) to set up your Next.js app.

Build your site normally as you would in Next.js, and use its built-in development server during development:

npm run dev

When you're ready to deploy your site to Compute, build your site with the standard build tool:

npm run build

This creates an optimized build of your application and places the output into the ./.next directory, that contains all the files generated from your sources.

To run this in Compute, run:

npx @fastly/next-compute-js@latest init

This will generate a Compute project for you and place it in a directory called ./compute-js.

This program can then be served (local development server) or published (to a Compute service) by using the following commands.

Local Development:

cd ./compute-js
fastly compute serve

Deploy to Compute:

cd ./compute-js
fastly compute publish

Remember that if you ever change your source files, you will have to run npm run build again to update the built files in your .next directory.

Scripts

In order to simplify the process of building and running or publishing your project, we recommend that you add the following scripts to your package.json file.

{
  "scripts": {
    "fastly-serve": "next build && cd compute-js && fastly compute serve --verbose",
    "fastly-publish": "next build && cd compute-js && fastly compute publish --verbose"
  }
}

Now, you can use the following commands to build, and then run or publish your project:

Local Development:

npm run fastly-serve

Deploy to Compute:

npm run fastly-publish

Configuring the Compute application

Being a Compute JavaScript application, the generated project contains a fastly.toml file. Before publishing your project, you may want to update the various fields to specify your project name, the author name, and the service ID.

Additionally, if the Server-Side parts of your application need any access to backends while running on the local development server, define them here.

Supported Next.js Features

The following Next.js features are supported:

  • Static File Routing
  • Static Routed Pages - index routes, nested routes
  • Dynamic Routed Pages - dynamic route segments, catch-all, optional catch-all
  • Link object
  • Router object / Imperative Routing / Shallow Routing
  • Static Generation without Data
  • Server-Side Generation with Static Props / Static Paths
  • Server-Side Rendering with Server-Side Props
  • Client-Side fetching
  • SWR
  • Built-in CSS / CSS Modules
  • Compression (gzip)
  • ETag generation
  • Rewrites
  • Redirects
  • Internationalized Routing
  • Layouts
  • Font Optimization
  • Headers
  • MDX - (See note below)
  • Custom App
  • Custom Document
  • Custom Error Page
  • API Routes / Middleware

The following features are not yet supported, but are on the radar:

  • Image Optimization
  • Preview Mode

The following features are not supported at the current time:

  • Edge API Routes / Middleware
  • Incremental Static Regeneration
  • Dynamic Import

API Routes / Middleware

We support API Routes and Middleware. The handlers in your application will receive Node.js-style request and response objects that have Next.js Request and Response helpers applied to them.

At the current time, Edge API Routes and Middleware are not supported.

How it works

Internally this is a custom implementation of the NextServer class provided by Next.js. This implementation uses @fastly/compute-js-static-publish to load up the files from the filesystem under the ./.next directory generated by next build.

Developing

The following lists the directory structure of the tool and the library.

src/
  bin/          - entry point for the CLI
  cli/          - The CLI wrapper for the scaffolding tool
  init-server/  - The main code for the scaffolding tool

  index.ts      - The main library export of this library
  server/       - The code of the Next.js server implementation
  types/        - TypeScript types
  util/         - Util functions
  core/         - Compute core libraries

test/           - Unit tests (in progress)

examples/       - Examples
resources/      - Files in this directory are copied into the output project by the scaffolding tool   

Next.js Versions

Next.js is under active development, and it makes fairly frequent updates to its internals. Sometimes those changes cause incompatibilities with the current version of next-compute-js.

While newer versions of Next.js may work, this version of next-compute-js supports Next.js 12.3.0.

See the following table for compatibility:

Next.js version @fastly/next-compute-js version
12.2.2 0.1.1-beta.4
12.2.4 0.2.5
12.2.5 0.2.5
12.3.0 0.9.0 (current)

MDX

It's possible to use MDX by following the directions on this page on the Next.js website: Using MDX with Next.js.

The plugin performs its pre-rendering and compilation of MDX during build time, and for Compute you will need to exclude the @next/mdx plugin itself during runtime:

if (!process.env.NEXT_COMPUTE_JS) {
  // Apply MDX loader only at compile time
  const withMDX = require('@next/mdx')({
    extension: /\.mdx?$/,
    options: {
      remarkPlugins: [],
      rehypePlugins: [],
    },
  });
  module.exports = withMDX({
    ...module.exports,
    // Append the default value with md extensions
    pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
  });
}

Troubleshooting

Error: Cannot find module '@fastly/http-compute-js/dist/polyfill'

You may see the following problem if you have @fastly/[email protected] installed:

[webpack-cli] Error: Cannot find module '@fastly/http-compute-js/dist/polyfill'

If so, you can re-scaffold your compute-js application with v0.7.2 or newer.

Or, you can make the following changes to webpack.config.js:

  • Remove these lines
     new webpack.ProvidePlugin({
       Buffer: [ 'buffer', 'Buffer' ],
       process: 'process',
-      setTimeout: [ 'timeout-polyfill', 'setTimeout' ],
-      clearTimeout: [ 'timeout-polyfill', 'clearTimeout' ],
     }),
  • Remove these lines
     alias: {
-      'timeout-polyfill': require.resolve('@fastly/http-compute-js/dist/polyfill'),
       'next/dist/compiled/etag': require.resolve('@fastly/next-compute-js/build/src/util/etag'),
       'next/dist/compiled/raw-body': require.resolve('raw-body'),
     },

statics.js not being built correctly?

If you've recently updated the version of Fastly CLI, please check the build scripts defined in fastly.toml and package.json. The currently recommended default values are as follows:

  1. fastly.toml

The [scripts.build] should look like this:

[scripts]
build = "npm run build"
  1. package.json

The "scripts" should contain the following values:

{
    "prebuild": "npx check-next-version && npx @fastly/compute-js-static-publish --build-static --suppress-framework-warnings && webpack",
    "build": "js-compute-runtime ./bin/index.js ./bin/main.wasm",
    "deploy": "npm run build && fastly compute deploy"
}

Issues

If you encounter any non-security-related bug or unexpected behavior, please file an issue using the bug report template.

Security issues

Please see our SECURITY.md for guidance on reporting security-related issues.

License

MIT.

next-compute-js's People

Contributors

dependabot[bot] avatar harmony7 avatar integralist avatar jonathanspeek avatar triblondon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

next-compute-js's Issues

Add support for next/image

I don’t believe next/image is currently supported, though I see “Image Optimization“ is on the radar. Assuming that’s what readme is referring to.

new Error("Automatic publicPath is not supported in this browser", "<stdin>", 2)

➜ compute-js: fastly compute serve
✓ Initializing...
✓ Verifying package manifest...
✓ Verifying local javascript toolchain...
✗ Running [scripts.build]...

ERROR: error during execution process:

Exception while evaluating JS: (new Error("Automatic publicPath is not supported in this browser", "", 2))
@:2:16345416
@:2:16345558
@:2:16345971

Error: failed to initialize JS

Caused by:
0: the wizer.initialize function trapped
1: Exited with i32 exit status 1
wasm backtrace:
0: 0x40d2fc - !<wasm function 6499>
1: 0x40d304 - !<wasm function 6500>
2: 0x40f0b2 - !<wasm function 6509>
3: 0x2844b - !<wasm function 211>
4: 0x3bab9 - !<wasm function 214>
5: 0x3bc8e - !<wasm function 216>

Wizer failed with status: exit status: 1.

Is Incremental Static Regeneration (ISR) supported?

Hi there,

In Next.js there's a feature called "Incremental Static Regeneration (ISR)" which allows to revalidate content fetched at build time after a given time. This works in both the pages and app directory.

Does this library and the Fastly Compute@Edge platform support this feature so that stalled content can be revalidated if a request comes in? If not so, are there plans to add this feature in the future?

Errors with Next 13

Hi,

It doesn't appear that the current code/getting started works any longer. Following the instructions in the readme and running fastly compute serve but the code doesn't build. These seem to be the relevant errors:

✘ [ERROR] Transforming destructuring to the configured target environment ("es5") is not supported yet

    bin/index.js:2:1280309:
      2 │ ...default.Component{render(){const{statusCode:e,withDarkMode:t=!0}...
        ╵                                    ^

  The target environment was set to "es5" here:

    ../tsconfig.json:3:14:
      3 │     "target": "es5",
        ╵               ~~~~~

/Users/timwhidden/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:157
      throw new Error("Invalid packet");
      ^

Error: Invalid packet
    at ByteBuffer._read (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:157:13)
    at ByteBuffer.read (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:171:20)
    at visit (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:94:30)
    at visit (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:109:43)
    at visit (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:109:43)
    at visit (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:101:23)
    at visit (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:109:43)
    at decodePacket (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:121:15)
    at handleIncomingPacket (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:726:18)
    at Socket.readFromStdout (/Users/projects/next-js-compute/compute-js/node_modules/esbuild/lib/main.js:656:7)

There are very, very many tsconfig errors and then the last error is the Invalid packet error before the fastly compute serve command exits.

Seems weird because I assume the next build would transform the TS to JS so it's unclear to me why the fastly compute build would be doing anything with TS.. or perhaps whatever is transforming the destructuring is just pointing out that the TS target is off. The tsconfig was generated by create-next-app.

Support Windows environment

Tried deploying a Next.js app via this example.. but I get the following output when I try to deploy:

Initializing...
Verifying package manifest...
Verifying local javascript toolchain...
Initializing...
Building package using javascript toolchain...

ERROR: error during execution process:

❌ Can't load static-publish.rc.js
Run this from a compute-js-static-publish compute-js directory.
Error:  Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'.

If you believe this error is the result of a bug, please file an issue: https://github.com/fastly/cli/issues/new?labels=bug&template=bug_report.md

Would be great for this to be supported on Windows! :)

New Next.js 13 project with TypeScript does not compile

I understand that Next.js 13 is not yet listed as officially supported. That said, this information may be helpful.

After bootstrapping a clean Next.js 13 project with TypeScript support, I was getting a lot of errors about unsupported syntax when running fastly compute serve:

✘ [ERROR] Transforming array spread to the configured target environment ("es5") is not supported yet

    bin/index.js:2:1276885:
      2 │ ...n,h=[...Array.isArray(u)?u:[u],...Array.isArray(p)?p:[p]];a.defa...
        ╵                                   ~~~

  The target environment was set to "es5" here:

    ../tsconfig.json:3:14:
      3 │     "target": "es5",
        ╵               ~~~~~

✘ [ERROR] Transforming const to the configured target environment ("es5") is not supported yet

    bin/index.js:2:1277385:
      2 │ ...vmode":void 0}))}function S(){const{docComponentsRendered:e}=a.u...
        ╵                                  ~~~~~

These errors refer to the TypeScript configuration.

After changing target to es6 in tsconfig.json, the project did compile and fastly compute serve ran without issue. However, it still wasn't possible to access the Next.js app, as I was getting 500 response and saw this message in terminal:

2023-01-12T15:08:21.860974Z  WARN no backend definitions found in /Users/ronni/Development/seatgeek/fastly-nextjs-poc/compute-js/fastly.toml
2023-01-12T15:08:21.861102Z  INFO Listening on http://127.0.0.1:7676
2023-01-12T15:08:34.983914Z  INFO request{id=0}: handling request GET http://127.0.0.1:7676/
2023-01-12T15:08:35.013234Z  INFO request{id=0}: request completed using 31.2 MB of WebAssembly heap
2023-01-12T15:08:35.013261Z  INFO request{id=0}: request completed in 29ms
Promise rejected but never handled: A.isTargetLikeServerless is not a function
Stack:
  get _isLikeServerless@<stdin>:2108:51
  getFontManifest@<stdin>:2006:26
  @<stdin>:25826:779
  D@<stdin>:1784:15
  bin/index.js/5150/getServer/<@<stdin>:2132:38
  fulfilled@<stdin>:317:26

Size issue preventing deployment of even a small app.

Steps to replicate:

  • Have a NextJS project with 1 single page.
  • Have a ./public folder with 15MB of files
  • Run commands to deploy to compute@edge
  • ERROR: package size is too large (138618697 bytes)

Huge fan of the work that's been done on this by Fastly, but we can't even put our smallest possible application on Compute@Edge at the moment.

It looks like reading through Qutoas page "Maximum compiled package size: 50MB" is obviously the limit that appears top of the list but a "HELLO WORLD" NextJS app put through this library comes out at 32MB already, so I don't think we can even do anything on our side to optimize our output when we're working with such a small remainder.

Build error when adding MDX support (or running the included example)

Version

Fastly CLI version v3.3.0 (96b3aa7)
Built with go version go1.19 linux/amd64
Viceroy version: viceroy 0.2.15

What happened

Setting a minimal site up from scratch works, but fastly compute serve fails when adding MDX. (Since MDX support is also in the example app in this repo, the example fails in the same way.)

running
$ next build && cd compute-js && fastly compute serve

✓ Verifying local javascript toolchain...
✗ Building package using javascript toolchain...

ERROR: error during execution process:

Warning: Unknown file type /.next/BUILD_ID...
Warning: Unknown file type /.next/trace...
Warning: Unknown file type /README.md....

Can't use npx next build with fastly's js sdk

Following the instructions to use edge dictionaries, this is also reproducible in this repository's example project.

In package.json:

"dependencies": {
  "@fastly/js-compute": "^1.3.4",
  ...
}

In e.g. _app.js:

import { ConfigStore } from "fastly:config-store";

tsc compiles fine. webpack does not:

> npx next build --no-lint
warn  - Linting is disabled
info  - Checking validity of types
info  - Creating an optimized production build
Failed to compile.

fastly:config-store
Module build failed: UnhandledSchemeError: Reading from "fastly:config-store" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "fastly:" URIs.
    at /Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:28:395974
    at Hook.eval [as callAsync] (eval at create (/Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:13:28771), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:13:25925)
    at Object.processResource (/Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:28:395899)
    at processResource (/Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:1:267616)
    at iteratePitchingLoaders (/Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:1:266975)
    at runLoaders (/Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:1:270879)
    at NormalModule._doBuild (/Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:28:395761)
    at NormalModule.build (/Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:28:397789)
    at /Users/nieldrummond/projects/next-compute-js/examples/my-app/node_modules/next/dist/compiled/webpack/bundle5.js:28:81243

Import trace for requested module:
./pages/_app.js


> Build failed because of webpack errors

What's the recommended approach?

support for next 13+ w/ React Server Components

was wondering if there's ongoing work to support Next.js v13+ that have the React Server Components paradigm experimentally enabled via the app directory. would love to use this in the future if that becomes a possibility, so any information related would be extremely helpful! thanks again

Using TypeScript appears to require target to be esnext

With a freshly created Next.js app (using create-next-app) with TypeScript support, errors are occurring when running fastly compute serve as the transpilation step does not support certain features to be transpiled to es5. es5 is the default target for a new Next.js app with TypeScript support.

✘ [ERROR] Transforming const to the configured target environment ("es5") is not supported yet

    bin/index.js:2:1265012:
      2 │ ... n.default.Component{render(){const{statusCode:e,withDarkMode:t=...
        ╵                                  ~~~~~

  The target environment was set to "es5" here:

    ../tsconfig.json:3:14:
      3 │     "target": "es5",
        ╵               ~~~~~

Even with target set to es6, an error is occurring:

Error: Build failed with 1 error:
bin/index.js:2:1070811: ERROR: Transforming async generator functions to the configured target environment ("es6") is not supported yet

I was able to resolve this issue by configuring TypeScript to target esnext:

{
  "compilerOptions": {
    "target": "esnext",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true
  },
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
  "exclude": ["node_modules"]
}

It would be helpful to add a small note to the instruction about TypeScript support.

Unable to serve locally

Description

I am trying to bolt this onto an existing Next application however I am running into an issue when trying to run fastly-serve: next build && cd compute-js && fastly compute verbose.

Process command:
	sh -c npx check-next-version && npx @fastly/compute-js-static-publish --build-static && $(npm bin)/webpack && $(npm bin)/js-compute-runtime ./bin/index.js ./bin/main.wasm

Next.js version: 12.3.0
Fastly Compute@Edge JavaScript Static Publisher
Building loader...
Public directory '/Users/AMorrison/Dunelm/TCB/mfe-web-aggregator'.
No static directories defined.
Using exclude directories: ./node_modules, ./compute-js, ./pages, ./.next/cache, ./
Applying 0 custom content type(s).
Using include directories: ./.next, ./static, ./public
Warning: Unknown file type /.next/BUILD_ID...
/.next/build-manifest.json: "application/json"
/.next/export-marker.json: "application/json"
/.next/images-manifest.json: "application/json"
/.next/next-server.js.nft.json: "application/json"
/.next/package.json: "application/json"
/.next/prerender-manifest.json: "application/json"
/.next/react-loadable-manifest.json: "application/json"
/.next/required-server-files.json: "application/json"
/.next/routes-manifest.json: "application/json"
/.next/serverless/chunks/120.js: "application/javascript"
/.next/serverless/chunks/173.js: "application/javascript"
/.next/serverless/chunks/242.js: "application/javascript"
/.next/serverless/chunks/322.js: "application/javascript"
/.next/serverless/chunks/669.js: "application/javascript"
/.next/serverless/chunks/787.js: "application/javascript"
/.next/serverless/chunks/font-manifest.json: "application/json"
/.next/serverless/font-manifest.json: "application/json"
/.next/serverless/middleware-manifest.json: "application/json"
/.next/serverless/pages/404.html: "text/html"
/.next/serverless/pages/500.html: "text/html"
/.next/serverless/pages/_error.js: "application/javascript"
/.next/serverless/pages/account/callback.html: "text/html"
/.next/serverless/pages/account.html: "text/html"
/.next/serverless/pages/checkout/payment/card.js: "application/javascript"
/.next/serverless/pages/checkout/payment.js: "application/javascript"
/.next/serverless/pages/checkout/success.js: "application/javascript"
/.next/serverless/pages/checkout.js: "application/javascript"
/.next/serverless/pages/product/[id].js: "application/javascript"
/.next/serverless/pages/product.js: "application/javascript"
/.next/serverless/pages-manifest.json: "application/json"
/.next/serverless/webpack-runtime.js: "application/javascript"
/.next/static/bOSiri3YDkdDfRKpquGTy/_buildManifest.js: "application/javascript"
/.next/static/bOSiri3YDkdDfRKpquGTy/_ssgManifest.js: "application/javascript"
/.next/static/chunks/framework-5f4595e5518b5600.js: "application/javascript"
/.next/static/chunks/main-8db7d21a15d54ad1.js: "application/javascript"
/.next/static/chunks/pages/_app-812465b832720c1e.js: "application/javascript"
/.next/static/chunks/pages/_error-a4ba2246ff8fb532.js: "application/javascript"
/.next/static/chunks/pages/account/callback-bc0546f99f624958.js: "application/javascript"
/.next/static/chunks/pages/account-bdda54fe61e1af28.js: "application/javascript"
/.next/static/chunks/pages/checkout/payment/card-234891b951cdbd84.js: "application/javascript"
/.next/static/chunks/pages/checkout/payment-f0ecb009b33de20a.js: "application/javascript"
/.next/static/chunks/pages/checkout/success-f6a03b23b958bc07.js: "application/javascript"
/.next/static/chunks/pages/checkout-1e04e751b75682af.js: "application/javascript"
/.next/static/chunks/pages/product/[id]-80116b732c66e801.js: "application/javascript"
/.next/static/chunks/pages/product-e84983e2b55144e5.js: "application/javascript"
/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js: "application/javascript"
/.next/static/chunks/webpack-966019665164920b.js: "application/javascript"
Warning: Unknown file type /.next/trace...
Application is not a SPA.
Application specifies no 'not found (404)' page.
🚀 Wrote static file loader for 49 file(s).

Simply running fastly compute serve from inside the compute-js folder seems to isolate the problem to these two files
however these get generated during the next build process.

ERROR: error during execution process:

Warning: Unknown file type /.next/BUILD_ID...
Warning: Unknown file type /.next/trace....

Versions

  • "next": "12.3.0",
  • "@fastly/next-compute-js": "^0.4.1",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.