Next.js developer in The Hague

Next.js for businesses in The Hague, delivered remotely by one developer.

Next.js developer

My place in the WordPress community

  • I have had a wordpress.org account since 2006.
  • I contributed to WordPress core for versions 7.0 and 7.1.
  • I maintain 30 plugins on wordpress.org.
  • I organise and speak at WordCamps.
  • I have attended every WordCamp Europe from 2017 to 2026.

My WordPress.org profile

Binnenhof buildings reflected in the Hofvijver, The Hague

The Binnenhof above the Hofvijver. Photograph by Michielverbeek, CC BY-SA 4.0, from Wikimedia Commons.

A Dutch government body that lets citizens log in with DigiD does not just add a button. Logius, the digital government agency, runs the connection process, tests the integration and supervises the yearly security assessment. I am Mariusz Szatkowski, a solo developer in Gdynia, and I build Next.js applications remotely and in writing. This page is based on the Logius pages in Dutch, read on 4 December 2026. I am not a lawyer or an IT auditor, and the assessment itself belongs to the auditor.

#Who may connect to DigiD?

Logius states three conditions, all of which must hold. The organisation performs a public task laid down in law. By law it may use the citizen service number (BSN) or the A-number for that task. And it uses DigiD to carry out the task. Citizens who only want to log in are sent to digid.nl.

For a supplier this has a practical meaning. The connection holder is the public body, not the agency that writes the code. Logius also publishes a list of ICT suppliers that can help with connecting, and a page on who does what: the connected organisation is responsible for its own connection and web service, and for making sure it is available, works correctly and is secure.

#What are the steps to connect?

Logius describes six steps. Before them, the organisation agrees to the connection conditions, makes sure its systems meet a security standard and commits to an annual ICT security assessment. With that arranged, Logius says the organisation can be connected within a month.

  1. Prepare. Read the connection manual, write an implementation plan, decide whether to use single sign-on, choose the trust level for the web service and apply for PKIoverheid certificates.
  2. Connect to preproduction. Fill in the request form. Within five working days the organisation receives connection details for the DigiD preproduction environment, and the integration is built there.
  3. Test preproduction. The organisation tests with the Logius checklist for connecting, then asks Logius to test. The page says to wait with the production request until Logius has approved.
  4. Connect to production. Fill in the form again, build the integration against production and send a request for activation through the DigiD change form.
  5. Test production. The organisation tests, and Logius approves again.
  6. Hand over. The connection, and the service behind it where applicable, goes to the managing organisation. Within two months the service must meet the ICT security assessment.

The Logius page also describes a separate app2app route for organisations that have their own app. It requires an existing connection through the SAML interface. A web application in Next.js is not that route, unless the same body also ships a mobile app.

#Which trust level does the application need?

Logius describes four levels: basic (username and password), medium (the DigiD app or SMS check), substantial (the DigiD app with a one-time ID check of a passport, driving licence or identity card) and high (login with an identity card or licence through the app, matching the highest eIDAS level). The connected organisation decides which data a user can see or change by level. Logius points to the Forum Standaardisatie guide on trust levels for choosing one.

For the build, the level is an input, not a setting I pick. A page that shows health data and a page that shows a letter’s status may need different levels. I would keep the required level per route in one typed table, so the middleware or server-side session check can compare it to what the login returned.

#What is the ICT security assessment?

Logius says the assessment is how it supervises DigiD connections, and that it applies to all Dutch organisations with a connection, including those that use DigiD through the access service (TVS). The organisation has an assessment done each year on the application and its environment, fixes shortcomings, and hands in a report written and signed by a Register EDP-auditor (RE-auditor). Logius supervises the deadlines and assesses the report.

The deadlines differ by connection type:

  • New connection. Within two months after activation, the connection holder hands in a first report. It tests whether the norms are met in design and existence.
  • Existing connection. Every year between 1 January and 1 May, with a report on the previous year. It tests design, existence and, for five norms, operation.

Two more rules matter for a project plan. Logius says a changed domain name or a changed interface needs a new connection number, which is treated as a new connection. And the assessment scope, quoted on the Logius page from the NOREA guide, covers the internet-facing pages the user interacts with after logging in with DigiD, the system links and the infrastructure tied to the DigiD identification and authentication process, and relevant management of the web application. Back-office systems that deliver or fetch data are outside the scope, but subsystems and interfaces are in scope when authentication came from DigiD.

Hosting is also in scope. The Logius page says a part of the environment or its management can be outsourced to a service organisation, which then falls within the assessment. The connection holder stays responsible and remains Logius’s point of contact. Reports must be PDF/A and carry a qualified electronic signature of the type Logius accepts.

#Which norms does a Next.js application meet?

The DigiD Normenkader 3.0 has applied since 1 August 2022. The ministry of the Interior set it, in consultation with Logius, AuditDienstRijk and the NCSC. It is a selection of 21 guidelines from the NCSC document on ICT security guidelines for web applications. For new connections all 21 are tested on design and existence. For existing connections five get a test on operation as well: U/TV.01 (identity and access), U/WA.02 (web application management), C.07 (log monitoring), C.08 (change management) and C.09 (patch management).

Several norms touch code and delivery directly. This is how I read them, and the auditor’s judgement decides:

NormText in shortWhat I would put in place
U/WA.03input is normalised and validated before processingserver-side schema validation on every route handler and Server Action
U/WA.04output is normalised to values that can be processed safelyescaping by default in React, and no raw HTML injection without a reviewed sanitiser
U/PW.03, U/PW.07web server configured to a baseline, with a hardening guidelinea written deployment configuration kept in the repository
C.03, C.04vulnerability scans and penetration tests, by processscans in CI, and a reserved slot for the penetration test
C.08change management: timely, authorised, testedpull requests with review, staging, written acceptance
C.09patch management so the latest security patches are installed in timea dated dependency and Next.js update routine

Whether the npm dependency tree counts as the ICT components meant by C.03 and C.09 is for the auditor. I would treat it as in scope, because it ships in the application.

#What does the Next.js documentation add?

Two official guides fit the security norms. The data security guide says environment variables stay on the server unless prefixed with NEXT_PUBLIC_, and recommends keeping data access in a layer that checks authorisation, and marking server code with server-only. It also says an exported Server Action can be reached by a direct POST request, so every action needs its own check of the session and trust level.

The Content Security Policy guide describes nonces: a nonce is a unique random value per request, used to allow selected inline scripts. It says a nonce approach requires dynamic rendering, and the policy is set in the proxy layer. The DigiD norms do not mention CSP by name. It is one way to show the auditor how the output side is hardened.

A small example of the per-route trust level check mentioned earlier:

// lib/trust.ts
import 'server-only'

const REQUIRED = {
  '/mijn-brieven': 'midden',
  '/mijn-gezondheid': 'substantieel',
} as const

const ORDER = ['basis', 'midden', 'substantieel', 'hoog']

export function allowed(path: keyof typeof REQUIRED, level: string) {
  return ORDER.indexOf(level) >= ORDER.indexOf(REQUIRED[path])
}

The level names mirror the Logius page. The mapping from the login response to these values comes from the SAML interface specification, which I have not read in detail here and would study before building.

#How does a project with me run?

  1. You send the body’s name, who holds the DigiD connection, the trust level, the hosting provider and the deadline. A written reply follows on the next working day, naming the Logius pages I would check first.
  2. I write the scope with the Logius steps next to the build steps, and the questions for your auditor and your Logius contact.
  3. I build on a staging copy against the preproduction environment, and you test with the Logius checklist.
  4. After written acceptance, I hand over the repository, the deployment configuration and a change log the auditor can read.

I need the repository and hosting access and the preproduction details, delivered by the connection holder. The general offer is on the Next.js developer page.

#Planning a DigiD-protected portal in Next.js?

Send the trust level, the hosting provider and the date by which the connection must be live through the contact page. The first written estimate is free, and it lists the Logius steps that sit on your side and not in the code.

WordPress support & development in The Hague

See also in Netherlands

Need this service: Next.js developer in The Hague?

Describe your project by e-mail. I reply within 24 hours.

Describe your project

Explore other WordPress services and knowledge base