A custom Recogito Studio annotation export for the Sandcastle project.
- Change into your Recogito Client folder. To install the plugin package, run:
npm install @recogito/plugin-sandcastle-export
- Edit your
astro.config.mjs
:
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import netlify from '@astrojs/netlify';
+ import Sandcastle3D from '@recogito/plugin-sandcastle3d-export';
export default defineConfig({
integrations: [
react(),
+ Sandcastle3D()
],
output: 'server',
adapter: netlify(),
vite: {
ssr: {
noExternal: ['clsx', '@phosphor-icons/*', '@radix-ui/*']
},
optimizeDeps: {
esbuildOptions: {
target: 'esnext'
}
}
}
});
- Restart the Recogito Client.
- Run
npm install
in the root folder and in the.dev
folder. - Run
npm run build
to build the plugin. - Run
npm run dev
to start the test application. - Go to http://localhost:4321/
This plugin retrieves data from the database. Therefore, you need to configure the test app for Supabase access.
- Create a copy of the file
.dev/.env.example
named.dev/.env
. - Edit the
.dev/.env
file to configure your Supabase project URL and public API key. - Restart the test app with
npm run dev
.
The test application will list only the UI extensions provided by a plugin. In this plugin, that's simply a <a>
link to the export route, meant to go into Recogito's export menu later. Because of the limitations of the test app, the "current project" will be undefined
, and the link will point to:
http://localhost:4321/api/undefined/export/sandcastle
To test the export route, you need to manually replace undefined
with the ID of a project you have access to. E.g.:
http://localhost:4321/api/1cb15deb-e9c9-44e8-acbf-e30423d58e9e/export/sandcastle