
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@spirokit/next-adapter
Advanced tools
This project was designed to make integration of SpiroKit in next apps easier
Next.js is a React framework that provides simple page-based routing as well as server-side rendering. To use Next.js with SpiroKit for web we recommend that you use a library called @spirokit/next-adapter to handle the configuration and integration of the tools.
yarn add @spirokit/next-adapter next-compose-plugins next-transpile-modules next-fonts -D
yarn add react-native-web @spirokit/native-base react-native react-native-svg react-native-safe-area-context react-native-heroicons
Re-export the custom Document component in the pages/_document.js file of your NextJs project.
react-native-web styling works.mkdir pages; touch pages/_document.js
pages/_document.jsexport { default } from "@spirokit/next-adapter/document";
Update next.config.json with below code
Custom withSpiroKit function implements withPlugins function from next-compose-plugins.
WithSpiroKit function takes in 2 parameters :
type withSpiroKitParam = {
config: ConfigType,
phase?: Array,
};
type ConfigType = {
dependencies?: Array<string>,
plugins?: Array<function>,
nextConfig?: Object,
};
[next-transpile-modules](https://github.com/martpie/next-transpile-modules) .const { withSpiroKit } = require("@spirokit/next-adapter");
module.exports = withSpiroKit({
dependencies: [],
});
const { withSpiroKit } = require("@spirokit/next-adapter");
const sass = require("@zeit/next-sass");
module.exports = withSpiroKit({
plugins: [[sass]],
});
const { withSpiroKit } = require("@spirokit/next-adapter");
module.exports = withSpiroKit({
nextConfig: {
projectRoot: __dirname,
webpack: (config, options) => {
config.resolve.alias = {
...(config.resolve.alias || {}),
"react-native$": "react-native-web",
};
config.resolve.extensions = [
".web.js",
".web.ts",
".web.tsx",
...config.resolve.extensions,
];
return config;
},
},
});
If the plugin should only be applied in specific phases, you can specify them here. You can use all phases next.js provides.
const withPlugins = require("next-compose-plugins");
const {
PHASE_DEVELOPMENT_SERVER,
PHASE_PRODUCTION_BUILD,
} = require("next/constants");
const sass = require("@zeit/next-sass");
module.exports = withPlugins([
[
sass,
{
cssModules: true,
cssLoaderOptions: {
localIdentName: "[path]___[local]___[hash:base64:5]",
},
},
[PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_BUILD],
],
]);
FAQs
1. About The Project 2. Built With 3. Usage 4. Contributing
We found that @spirokit/next-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.