<commit_before>import Document, { Head, Main, NextScript } from 'next/document';

export default class MyDocument extends Document {
  render() {
    return (
      <html>
        <Head>
          <link rel="stylesheet" href="/admin/_next/static/style.css" />
        </Head>
        <body>
          <Main />
          <NextScript /><commit_msg>#348: Don't use /admin prefix for css in dev-mode GlobalDigitalLibraryio/issues#348<commit_after>import Document, { Head, Main, NextScript } from 'next/document';

const isDev = process.env.NODE_ENV !== 'production';
const cssPath = (isDev ? "/" : "/admin/") + "_next/static/style.css";

export default class MyDocument extends Document {
  render() {
    return (
      <html>
        <Head>
          <link rel="stylesheet" href={cssPath} />
        </Head>
        <body>
          <Main />
          <NextScript />
{'fraction_non_alphanumeric': 0.1412037037037037, 'fraction_numerical': 0.006944444444444444, 'mean_word_length': 2.4738955823293174, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7380259', 'n_tokens_mistral': 257, 'n_tokens_neox': 249, 'n_words': 66}