
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@vue-storefront/nuxt
Advanced tools
@vue-storefront/nuxt dependency to your project# Using pnpm
pnpm add -D @vue-storefront/nuxt
# Using yarn
yarn add --dev @vue-storefront/nuxt
# Using npm
npm install --save-dev @vue-storefront/nuxt
@vue-storefront/nuxt to the modules section of nuxt.config.tsexport default defineNuxtConfig({
modules: ["@vue-storefront/nuxt"],
});
To configure the module, use vsf key in the Nuxt configuration object and provide necessary information such as the Middleware instance address:
export default defineNuxtConfig({
modules: ["@vue-storefront/nuxt"],
vsf: {
middleware: {
apiUrl: "http://localhost:4000",
},
},
});
sdk.config.ts in root directory of your project:The defineSdkConfig function is used for this purpose. The parameter for calling this function should be an anonymous function that receives an injected context from the module, containing:
buildModule function,middlewareUrl),getCookieHeader).You should import all other SDK configuration components. See the example below illustrating the SDK configuration with Unified and Contentful modules.
import {
contentfulModule,
ContentfulModuleType,
} from "@vsf-enterprise/contentful-sdk";
import { unifiedModule } from "@vsf-enterprise/unified-sdk";
import type { UnifiedApiExtension } from "../storefront-middleware/middleware.config";
export default defineSdkConfig(
({ buildModule, middlewareUrl, getCookieHeader }) => ({
unified: buildModule(unifiedModule<UnifiedApiExtension>, {
apiUrl: middlewareUrl + "/commerce",
requestOptions: {
headers: getCookieHeader,
},
}),
contentful: buildModule<ContentfulModuleType>(contentfulModule, {
apiUrl: middlewareUrl + "/cntf",
}),
}),
);
That's it! You can now use VueStorefront Module in your Nuxt app ✨
FAQs
Alokai dedicated features for Nuxt
We found that @vue-storefront/nuxt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.