Host your own license for your open source projects.
Theme toggle (light/dark) Usage of query parameters to prefill the license template.
There are only two parameters: holder
and year
.
- The
holder
parameter is used to prefill the name field.- If the
holder
parameter is not set, the default value is the name defined in the.env
file. - If however the value is not set in the
.env
file, the default value is<COPYRIGHT HOLDER>
.
- If the
- The
year
parameter is used to prefill the year field. If theyear
parameter is not set, the current year is used.
The usage is simple. Just add the holder
and year
parameters to the URL.
Example: https://<your-domain>/?holder=Faouzi Mohamed&year=2023
You need to create a .env
file in the root directory of the project and add the following variables:
NEXT_PUBLIC_SITE_URL=https://<your-domain>
NEXT_PUBLIC_COPYRIGHT_HOLDER=<COPYRIGHT HOLDER>
Then, install dependencies
yarn install
# or
# npm install
Finaly, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
This project is licensed under the MIT License - see the LICENSE file for details.