Skip to content

Instantly share code, notes, and snippets.

View antoniojuniordev's full-sized avatar
💻
Working

Antonio Junior Dev antoniojuniordev

💻
Working
View GitHub Profile

To embed the contents of an SVG file into your site using NextJS with the new Rust-based compiler (Turbopack), perform the following steps:

  1. Install @svg/webpack:
$ npm install --save-dev @svgr/webpack
  1. Add to your webpack config in next.config.js with the following options. This will remove the width and height from the SVG but keep the viewBox for correct scaling.
@mesaque
mesaque / Dockerfile
Last active September 24, 2021 17:19
docker hub php alpine 3.10 new relic install
FROM php:7.4.21-fpm-alpine3.13
MAINTAINER [email protected]
USER root
ENV NEW_RELIC_VERSION php5-9.18.1.303-linux-musl
ENV NR_INSTALL_SILENT 1
ENV NR_INSTALL_KEY YOUR-KEY-HERE
ENV NR_APP_NAME 'You Name'