
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@strapi/starter-next-corporate
Advanced tools
Next starter for creating a corporate site with Strapi.
View the live demo • Read the blog post
This starter is designed for flexibility. Using it, you'll be able to manage your website content entirely in Strapi, and get a Next app automatically generated. Marketing teams will be able to create pages and design their layout without help from developers.
This starter features:
This starter uses the Strapi corporate template
Check out all of our starters here
Use our create-strapi-starter
CLI to create your project.
# Using Yarn
yarn create strapi-starter my-site next-corporate
# Or using NPM
npx create-strapi-starter my-site next-corporate
The CLI will create a monorepo, install dependencies, and run your project automatically.
The Next frontend server will run here => http://localhost:3000
The Strapi backend server will run here => http://localhost:1337
You can turn preview mode on with a URL like this:
http://localhost:3000/api/preview?secret=<preview-secret>&slug=<slug>
<preview-secret>
is the secret token defined in your .env config,
<slug>
is the slug you entered in Strapi for your page.
While preview mode is on you can access draft
pages just like you would published
pages.
For example http://localhost:3000/secret would be available in preview mode.
A banner will remain under the navigation to let you know preview mode is on and it will also allow you to turn it off.
To edit this website, you'll need to run both the frontend and the backend in your development environment.
We have built sections for you, but you will likely want to add more to fit your needs. Follow these steps:
contentSections
field.data
prop in /frontend/components/sections
/frontend/components/sections.js
, and add an entry to the sectionComponents
object.We use Tailwind CSS for styling. To modify your page's look, you can edit the theme in /front/tailwind.config.js
. Read the Tailwind docs to view all the changes you can make. For example, you can change the primary color like this:
const { colors } = require(`tailwindcss/defaultTheme`);
module.exports = {
theme: {
extend: {
colors: {
primary: colors.green,
},
},
},
};
You will need to deploy the frontend
and backend
projects separately. Here are the docs to deploy each one:
Don't forget to set up your environment variables on your production apps.
Here are the required ones for the frontend:
NEXT_PUBLIC_STRAPI_API_URL
: URL of your Strapi backend, without trailing slashPREVIEW_SECRET
: a random string used to protect your preview pagesAnd for the backend:
FRONTEND_URL
: URL of your frontend, without trailing slashFRONTEND_PREVIEW_SECRET
: token of Next.js preview mode defined on the frontendHave fun using this starter!
FAQs
Strapi corporate starter with Next.js
We found that @strapi/starter-next-corporate demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.